Simple Question (Direct)
Simple Question
Q7083007
P39
Q12737077
USER
What was the position held by Olaf Sørensen ?
(Q7083007,P39,c(Q12737077))
action filter_type
action find
entity Q7083007
relation P39
type Q12737077
['Q7083007', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q7083007 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
Olaf Sørensen
action filter_type
action find
entity Olaf Sørensen
relation position held
type occupation
['Olaf Sørensen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Olaf_Sørensen property:position_held ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q7083007,P39,c(Q12737077))
action filter_type
action find
entity Q7083007
relation P39
type Q12737077
The position held by Olaf Sørensen was a [ANSWER]
['Q7083007', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q7083007 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
member of the Parliament of Norway
The position held by Olaf Sørensen was a member of the Parliament of Norway
member of the Parliament of Norway
action filter_type
action find
entity Olaf Sørensen
relation position held
type occupation
['Olaf Sørensen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Olaf_Sørensen property:position_held ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7083007
P106
Q12737077
USER
What is the job of Olaf Sørensen ?
(Q7083007,P106,c(Q12737077))
action filter_type
action find
entity Q7083007
relation P106
type Q12737077
['Q7083007', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q7083007 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Olaf Sørensen
action filter_type
action find
entity Olaf Sørensen
relation occupation
type occupation
['Olaf Sørensen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Olaf_Sørensen property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q7083007,P106,c(Q12737077))
action filter_type
action find
entity Q7083007
relation P106
type Q12737077
The job of Olaf Sørensen is a [ANSWER]
['Q7083007', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q7083007 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
politician
The job of Olaf Sørensen is a politician
politician
action filter_type
action find
entity Olaf Sørensen
relation occupation
type occupation
['Olaf Sørensen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Olaf_Sørensen property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P921
Q223393
USER
Which literary genre was mainly based on that occupation ?
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?a WHERE { ?a property:P921 resource:Q82955 . ?a rdf:type ontology:Q223393 }
politician
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?a WHERE { ?a property:main_subject resource:politician . ?a rdf:type ontology:literary_genre }
[]
literary genre
Q21815179
SYSTEM
worldstatesmen
Q21815179
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[ANSWER] was mainly based on that occupation
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?a WHERE { ?a property:P921 resource:Q82955 . ?a rdf:type ontology:Q223393 }
worldstatesmen
Worldstatesmen was mainly based on that occupation
worldstatesmen
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?a WHERE { ?a property:main_subject resource:politician . ?a rdf:type ontology:literary_genre }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q21815179 Q24701546
P921
Q12737077
USER
Was mayor of Vallorbe the main subject in the work worldstatesmen ?
(Q21815179,P921,Q24701546)
action is_in
entity Q24701546
action find
entity Q21815179
relation P921
['Q21815179', 'P921', 'Q24701546']
ASK WHERE { resource:Q21815179 property:P921 resource:Q24701546 }
worldstatesmen mayor of Vallorbe
action is_in
entity mayor of Vallorbe
action find
entity worldstatesmen
relation main subject
['worldstatesmen', 'main subject', 'mayor of Vallorbe']
ASK WHERE { resource:worldstatesmen property:main_subject resource:mayor_of_Vallorbe }
[]
occupation
SYSTEM
NO
(Q21815179,P921,Q24701546)
action is_in
entity Q24701546
action find
entity Q21815179
relation P921
[ANSWER]
['Q21815179', 'P921', 'Q24701546']
ASK WHERE { resource:Q21815179 property:P921 resource:Q24701546 }
No
action is_in
entity mayor of Vallorbe
action find
entity worldstatesmen
relation main subject
['worldstatesmen', 'main subject', 'mayor of Vallorbe']
ASK WHERE { resource:worldstatesmen property:main_subject resource:mayor_of_Vallorbe }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q7083007 Q6931212 Q585
P937
Q56061
USER
Does Olaf Sørensen work at Muckton and Oslo ?
(Q7083007,P937,Q6931212) (Q7083007,P937,Q585)
action is_in
entity Q7083007
action intersection
action find_reverse
entity Q6931212
relation P937
action find_reverse
entity Q585
relation P937
['Q7083007', 'P937', 'Q6931212'] ['Q7083007', 'P937', 'Q585']
ASK WHERE { resource:Q7083007 property:P937 resource:Q6931212 . resource:Q7083007 property:P937 resource:Q585 }
Olaf Sørensen Muckton Oslo
action is_in
entity Olaf Sørensen
action intersection
action find_reverse
entity Muckton
relation work location
action find_reverse
entity Oslo
relation work location
['Olaf Sørensen', 'work location', 'Muckton'] ['Olaf Sørensen', 'work location', 'Oslo']
ASK WHERE { resource:Olaf_Sørensen property:work_location resource:Muckton . resource:Olaf_Sørensen property:work_location resource:Oslo }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q7083007,P937,Q6931212) (Q7083007,P937,Q585)
action is_in
entity Q7083007
action intersection
action find_reverse
entity Q6931212
relation P937
action find_reverse
entity Q585
relation P937
[ANSWER]
['Q7083007', 'P937', 'Q6931212'] ['Q7083007', 'P937', 'Q585']
ASK WHERE { resource:Q7083007 property:P937 resource:Q6931212 . resource:Q7083007 property:P937 resource:Q585 }
NO and YES respectively
action is_in
entity Olaf Sørensen
action intersection
action find_reverse
entity Muckton
relation work location
action find_reverse
entity Oslo
relation work location
['Olaf Sørensen', 'work location', 'Muckton'] ['Olaf Sørensen', 'work location', 'Oslo']
ASK WHERE { resource:Olaf_Sørensen property:work_location resource:Muckton . resource:Olaf_Sørensen property:work_location resource:Oslo }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q67499 Q585
P190
Q56061
USER
Which administrative territories are twin towns of Oslo or Herzogenbuchsee ?
OR((Q585,P190,c(Q56061)), (Q67499,P190,c(Q56061)))
action filter_type
action union
action find
entity Q585
relation P190
action find
entity Q67499
relation P190
type Q56061
{'OR': [['Q585', 'P190', {'concept': 'Q56061'}], ['Q67499', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . { { resource:Q585 property:P190 ?k } UNION { resource:Q67499 property:P190 ?k } } }
Herzogenbuchsee Oslo
action filter_type
action union
action find
entity Oslo
relation sister city
action find
entity Herzogenbuchsee
relation sister city
type administrative territorial entity
{'OR': [['Oslo', 'sister city', {'concept': 'administrative territorial entity'}], ['Herzogenbuchsee', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . { { resource:Oslo property:sister_city ?k } UNION { resource:Herzogenbuchsee property:sister_city ?k } } }
[]
administrative territorial entity
Q12892 Q60 Q84 Q1748 Q1754 Q216 Q1757 Q193445 Q43788 Q33935
SYSTEM
Some of them are Antwerp, New York City, London, Copenhagen, Stockholm, Vilnius, Helsinki, Artvin, Madison, Tel Aviv
Q1757 Q226 Q1754 Q8686 Q1748 Q33935 Q12892 Q750407 Q3711 Q270 Q193445 Q84 Q34370 Q216 Q43788 Q60 Q61 Q1764 Q10704
OR((Q585,P190,c(Q56061)), (Q67499,P190,c(Q56061)))
action filter_type
action union
action find
entity Q585
relation P190
action find
entity Q67499
relation P190
type Q56061
[ANSWERS] are twin towns of Oslo or Herzogenbuchsee
{'OR': [['Q585', 'P190', {'concept': 'Q56061'}], ['Q67499', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . { { resource:Q585 property:P190 ?k } UNION { resource:Q67499 property:P190 ?k } } }
Helsinki Nuuk Stockholm Shanghai Copenhagen Tel Aviv Antwerp Senica Belgrade Warsaw Artvin London Rotterdam Vilnius Madison New York City Washington, D.C. Reykjavík Tórshavn
Antwerp, New York City, London, Copenhagen, Stockholm, Vilnius, Helsinki, Artvin, Madison and Tel Aviv are twin towns of Oslo or Herzogenbuchsee
Antwerp New York City London Copenhagen Stockholm Vilnius Helsinki Artvin Madison Tel Aviv
action filter_type
action union
action find
entity Oslo
relation sister city
action find
entity Herzogenbuchsee
relation sister city
type administrative territorial entity
{'OR': [['Oslo', 'sister city', {'concept': 'administrative territorial entity'}], ['Herzogenbuchsee', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . { { resource:Oslo property:sister_city ?k } UNION { resource:Herzogenbuchsee property:sister_city ?k } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q585
P190
Q56061
USER
Are Oslo twin city of those ones ?
(Q585,P190,Q12892) (Q585,P190,Q60) (Q585,P190,Q84) (Q585,P190,Q1748) (Q585,P190,Q1754) (Q585,P190,Q216) (Q585,P190,Q1757) (Q585,P190,Q193445) (Q585,P190,Q43788) (Q585,P190,Q33935)
action is_in
entity prev_answer
action find
entity Q585
relation P190
['Q585', 'P190', 'Q12892'] ['Q585', 'P190', 'Q60'] ['Q585', 'P190', 'Q84'] ['Q585', 'P190', 'Q1748'] ['Q585', 'P190', 'Q1754'] ['Q585', 'P190', 'Q216'] ['Q585', 'P190', 'Q1757'] ['Q585', 'P190', 'Q193445'] ['Q585', 'P190', 'Q43788'] ['Q585', 'P190', 'Q33935']
ASK WHERE { VALUES ( ?z ) { ( resource:Q1757 ) ( resource:Q226 ) ( resource:Q1754 ) } . resource:Q585 property:P190 ?z }
Oslo
action is_in
entity prev_answer
action find
entity Oslo
relation sister city
['Oslo', 'sister city', 'Antwerp'] ['Oslo', 'sister city', 'New York City'] ['Oslo', 'sister city', 'London'] ['Oslo', 'sister city', 'Copenhagen'] ['Oslo', 'sister city', 'Stockholm'] ['Oslo', 'sister city', 'Vilnius'] ['Oslo', 'sister city', 'Helsinki'] ['Oslo', 'sister city', 'Artvin'] ['Oslo', 'sister city', 'Madison'] ['Oslo', 'sister city', 'Tel Aviv']
ASK WHERE { VALUES ( ?z ) { ( resource:Helsinki ) ( resource:Nuuk ) ( resource:Stockholm ) } . resource:Oslo property:sister_city ?z }
[]
administrative territorial entity
SYSTEM
YES
(Q585,P190,Q12892) (Q585,P190,Q60) (Q585,P190,Q84) (Q585,P190,Q1748) (Q585,P190,Q1754) (Q585,P190,Q216) (Q585,P190,Q1757) (Q585,P190,Q193445) (Q585,P190,Q43788) (Q585,P190,Q33935)
action is_in
entity prev_answer
action find
entity Q585
relation P190
[ANSWER]
['Q585', 'P190', 'Q12892'] ['Q585', 'P190', 'Q60'] ['Q585', 'P190', 'Q84'] ['Q585', 'P190', 'Q1748'] ['Q585', 'P190', 'Q1754'] ['Q585', 'P190', 'Q216'] ['Q585', 'P190', 'Q1757'] ['Q585', 'P190', 'Q193445'] ['Q585', 'P190', 'Q43788'] ['Q585', 'P190', 'Q33935']
ASK WHERE { VALUES ( ?z ) { ( resource:Q1757 ) ( resource:Q226 ) ( resource:Q1754 ) } . resource:Q585 property:P190 ?z }
Yes
action is_in
entity prev_answer
action find
entity Oslo
relation sister city
['Oslo', 'sister city', 'Antwerp'] ['Oslo', 'sister city', 'New York City'] ['Oslo', 'sister city', 'London'] ['Oslo', 'sister city', 'Copenhagen'] ['Oslo', 'sister city', 'Stockholm'] ['Oslo', 'sister city', 'Vilnius'] ['Oslo', 'sister city', 'Helsinki'] ['Oslo', 'sister city', 'Artvin'] ['Oslo', 'sister city', 'Madison'] ['Oslo', 'sister city', 'Tel Aviv']
ASK WHERE { VALUES ( ?z ) { ( resource:Helsinki ) ( resource:Nuuk ) ( resource:Stockholm ) } . resource:Oslo property:sister_city ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q84
P1433
Q1002697
USER
Which periodical literature does London contain ?
(c(Q1002697),P1433,Q84)
action filter_type
action find_reverse
entity Q84
relation P1433
type Q1002697
[{'concept': 'Q1002697'}, 'P1433', 'Q84']
SELECT DISTINCT ?b WHERE { ?b property:P1433 resource:Q84 . ?b rdf:type ontology:Q1002697 }
London
action filter_type
action find_reverse
entity London
relation published in
type periodical literature
[{'concept': 'periodical literature'}, 'published in', 'London']
SELECT DISTINCT ?b WHERE { ?b property:published_in resource:London . ?b rdf:type ontology:periodical_literature }
[]
periodical literature
Q4787038
SYSTEM
Architectural Review
Q4787038
(c(Q1002697),P1433,Q84)
action filter_type
action find_reverse
entity Q84
relation P1433
type Q1002697
London contains an [ANSWER]
[{'concept': 'Q1002697'}, 'P1433', 'Q84']
SELECT DISTINCT ?b WHERE { ?b property:P1433 resource:Q84 . ?b rdf:type ontology:Q1002697 }
Architectural Review
London contains an Architectural Review
Architectural Review
action filter_type
action find_reverse
entity London
relation published in
type periodical literature
[{'concept': 'periodical literature'}, 'published in', 'London']
SELECT DISTINCT ?b WHERE { ?b property:published_in resource:London . ?b rdf:type ontology:periodical_literature }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q84
P1376
Q7275
USER
What have London as their capital ?
(Q84,P1376,c(Q7275))
action filter_type
action find
entity Q84
relation P1376
type Q7275
['Q84', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7275 . resource:Q84 property:P1376 ?g }
London
action filter_type
action find
entity London
relation capital of
type state
['London', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:state . resource:London property:capital_of ?g }
[]
state
Q179876 Q174193 Q161885
SYSTEM
Kingdom of England, United Kingdom of Great Britain and Ireland, Kingdom of Great Britain
Q248452 Q161885 Q174193 Q110888 Q179876 Q330362
(Q84,P1376,c(Q7275))
action filter_type
action find
entity Q84
relation P1376
type Q7275
[ANSWERS] have London as their capital
['Q84', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7275 . resource:Q84 property:P1376 ?g }
British North America Kingdom of Great Britain United Kingdom of Great Britain and Ireland Kingdom of Essex Kingdom of England Commonwealth of England
Kingdom of England, United Kingdom of Great Britain and Ireland and Kingdom of Great Britain have London as their capital
Kingdom of England United Kingdom of Great Britain and Ireland Kingdom of Great Britain
action filter_type
action find
entity London
relation capital of
type state
['London', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:state . resource:London property:capital_of ?g }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2427885
Q7275
USER
And also tell me about Banavasi?
(Q2427885,P1376,c(Q7275))
action filter_type
action find
entity Q2427885
relation P1376
type Q7275
['Q2427885', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?b WHERE { resource:Q2427885 property:P1376 ?b . ?b rdf:type ontology:Q7275 }
Banavasi
action filter_type
action find
entity Banavasi
relation capital of
type state
['Banavasi', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?b WHERE { resource:Banavasi property:capital_of ?b . ?b rdf:type ontology:state }
[]
state
Q1479952
SYSTEM
Kadamba Dynasty
Q1479952
(Q2427885,P1376,c(Q7275))
action filter_type
action find
entity Q2427885
relation P1376
type Q7275
[ANSWER]
['Q2427885', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?b WHERE { resource:Q2427885 property:P1376 ?b . ?b rdf:type ontology:Q7275 }
Kadamba Dynasty
Kadamba Dynasty
action filter_type
action find
entity Banavasi
relation capital of
type state
['Banavasi', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?b WHERE { resource:Banavasi property:capital_of ?b . ?b rdf:type ontology:state }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1874
P206
Q337567 Q1267889 Q56061
USER
How many administrative territories are located in the neighbourhood of more number of still waterss or waterways than Odessa ?
(c(Q56061),P206,c(Q337567)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q1267889
action count
action filter_multi_types
action find
entity Q1874
relation P206
type Q337567
type Q1267889
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?v ) WHERE { { ?x property:P206 ?d . ?x rdf:type ontology:Q56061 . ?d rdf:type ontology:Q337567 } UNION { ?x property:P206 ?d . ?d rdf:type ontology:Q1267889 . ?x rdf:type ontology:Q56061 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { resource:Q1874 property:P206 ?y . { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } } } } . FILTER ( ?v > ?j ) }
Odessa
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Odessa
relation located next to body of water
type still waters
type waterway
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?v ) WHERE { { ?x property:located_next_to_body_of_water ?d . ?x rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:still_waters } UNION { ?x property:located_next_to_body_of_water ?d . ?d rdf:type ontology:waterway . ?x rdf:type ontology:administrative_territorial_entity } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { resource:Odessa property:located_next_to_body_of_water ?y . { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:still_waters ) ( ontology:waterway ) } } } } . FILTER ( ?v > ?j ) }
[]
still waters waterway administrative territorial entity
SYSTEM
79
Q18682792 Q2255397 Q740149 Q83178 Q1715 Q609698 Q254734 Q631517 Q1754 Q7977 Q985587 Q385386 Q2726062 Q625761 Q3894 Q15320 Q179454 Q206954 Q903595 Q174054 Q3483520 Q9918 Q11902175 Q9911 Q1709 Q2227038 Q334 Q995806 Q196397 Q1223508 Q1042366 Q11901984 Q3398922 Q3010939 Q6278969 Q1390389 Q7507390 Q15339 Q172 Q60 Q3274 Q1807382 Q11899935 Q920968 Q134620 Q654259 Q18419 Q6397865 Q1025014 Q3604 Q25230 Q11902896 Q183199 Q1737 Q2350941 Q674395 Q1043368 Q1026296 Q64 Q1160017 Q922981 Q166065 Q18681979 Q727 Q304108 Q77056 Q58940 Q12762569 Q15287 Q11901684 Q2124272 Q1270505 Q65502 Q2627415 Q2235 Q3361880 Q570990 Q2350685 Q11901400
(c(Q56061),P206,c(Q337567)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q1267889
action count
action filter_multi_types
action find
entity Q1874
relation P206
type Q337567
type Q1267889
[ANSWER]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?v ) WHERE { { ?x property:P206 ?d . ?x rdf:type ontology:Q56061 . ?d rdf:type ontology:Q337567 } UNION { ?x property:P206 ?d . ?d rdf:type ontology:Q1267889 . ?x rdf:type ontology:Q56061 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { resource:Q1874 property:P206 ?y . { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } } } } . FILTER ( ?v > ?j ) }
Vaattojärvi Uitdam Södermalm Almere Hanover Lorain Äkäslompolo Marivan Stockholm Priozersk Lee-on-the-Solent Spakenburg Westmaas Bandipore Kampala Syasstroy Pitkyaranta Kastoria Volendam Isola Bella Siggebohyttan Enkhuizen Väylä Den Helder Schwerin Warder, Netherlands Singapore Dobrzyń nad Wisłą Sortavala Ohrid Lilla Essingen Vuontisjärvi Y Felinheli Salmon Arm Jormua Landön Sicamous, British Columbia Shlisselburg Toronto New York City Managua Muiderberg Vaalajärvi Nellim Jyväskylä Bukoba Brooklyn Keväjärvi Inari Djibouti Guernsey Ylläsjärvi Ioannina Bregenz Scharwoude, Koggenland Bovenkarspel Stora Essingen Jinotega Berlin Perim Mijnsheerenland Lelystad Kelontekemä Amsterdam Isola dei Pescatori Edam Capolago Arenibek Novaya Ladoga Virmaila Maasdam Deline Bönigen Schellinkhout Veliky Novgorod Schardam Lakewood Tolhuin Vikajärvi
79
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Odessa
relation located next to body of water
type still waters
type waterway
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?v ) WHERE { { ?x property:located_next_to_body_of_water ?d . ?x rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:still_waters } UNION { ?x property:located_next_to_body_of_water ?d . ?d rdf:type ontology:waterway . ?x rdf:type ontology:administrative_territorial_entity } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { resource:Odessa property:located_next_to_body_of_water ?y . { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:still_waters ) ( ontology:waterway ) } } } } . FILTER ( ?v > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q5285
P1376
Q7275 Q515
USER
Which cities are the capital of greater number of states than Tarlac ?
(c(Q515),P1376,c(Q7275))
action greater
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q5285
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?r ) WHERE { ?p property:P1376 ?w . ?w rdf:type ontology:Q7275 . ?p rdf:type ontology:Q515 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q5285 property:P1376 ?u . ?u rdf:type ontology:Q515 } } . FILTER ( ?r > ?h ) }
Tarlac
action greater
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Tarlac
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?r ) WHERE { ?p property:capital_of ?w . ?w rdf:type ontology:state . ?p rdf:type ontology:city } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Tarlac property:capital_of ?u . ?u rdf:type ontology:city } } . FILTER ( ?r > ?h ) }
[]
state city
Q1486 Q1899 Q1731
SYSTEM
Buenos Aires, Kyiv, Dresden
Q3572 Q19689 Q8131 Q27860 Q3624 Q58650 Q71305 Q18970 Q80989 Q3926 Q5838 Q1899 Q1794 Q665 Q1486 Q220445 Q1461 Q23430 Q8684 Q3838 Q1069007 Q7568 Q1731 Q19660 Q1953 Q9005 Q1330294 Q2773 Q1854 Q308657 Q3826 Q68481 Q2936 Q7929221 Q11194 Q83247 Q11443 Q183584 Q2844 Q11725 Q73156 Q1865 Q18342086 Q72778 Q187136 Q107401 Q1761 Q2069869 Q726993 Q3919 Q1530 Q2999 Q16666
(c(Q515),P1376,c(Q7275))
action greater
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q5285
relation P1376
type Q515
[ANSWERS] are the capital of greater number of states than Tarlac
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?r ) WHERE { ?p property:P1376 ?w . ?w rdf:type ontology:Q7275 . ?p rdf:type ontology:Q515 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q5285 property:P1376 ?u . ?u rdf:type ontology:Q515 } } . FILTER ( ?r > ?h ) }
Tunis Tirana Palembang Jayapura Addis Ababa Zhangjiakou Ezhou Ambon Bhopal Pretoria Kabul Kyiv Frankfurt Lugdunum Buenos Aires Kuching Manila Ulaanbaatar Seoul Kinshasa Washukanni Yogyakarta Dresden Bucharest Yerevan Brussels Jiankang Braunschweig Ho Chi Minh City Minas Tirith Muscat Fuzhou Oldenburg Vijaya Sarajevo Braga Kediri Lanzhou Brasília Chongqing Linfen Kuala Lumpur Oyo-Ile Taiyuan Luoyang Sivas Dublin Edoras Cotabato City Gaborone Baghdad Würzburg Nanjing
Buenos Aires, Kyiv and Dresden are the capital of greater number of states than Tarlac
Buenos Aires Kyiv Dresden
action greater
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Tarlac
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?r ) WHERE { ?p property:capital_of ?w . ?w rdf:type ontology:state . ?p rdf:type ontology:city } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Tarlac property:capital_of ?u . ?u rdf:type ontology:city } } . FILTER ( ?r > ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1000336
P1376
Q7275 Q515
USER
And also tell me about Tandil?
(c(Q515),P1376,c(Q7275))
action greater
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q1000336
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?g ) WHERE { ?d rdf:type ontology:Q515 . ?b rdf:type ontology:Q7275 . ?d property:P1376 ?b } GROUP BY ?d } . FILTER ( ?g > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { ?k rdf:type ontology:Q515 . resource:Q1000336 property:P1376 ?k } } }
Tandil
action greater
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Tandil
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?g ) WHERE { ?d rdf:type ontology:city . ?b rdf:type ontology:state . ?d property:capital_of ?b } GROUP BY ?d } . FILTER ( ?g > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { ?k rdf:type ontology:city . resource:Tandil property:capital_of ?k } } }
[]
state city
Q1486 Q1899 Q1731
SYSTEM
Buenos Aires, Kyiv, Dresden
Q3572 Q19689 Q8131 Q27860 Q3624 Q58650 Q71305 Q18970 Q80989 Q3926 Q5838 Q1899 Q1794 Q665 Q1486 Q220445 Q1461 Q23430 Q8684 Q3838 Q1069007 Q7568 Q1731 Q19660 Q1953 Q9005 Q1330294 Q2773 Q1854 Q308657 Q3826 Q68481 Q2936 Q7929221 Q11194 Q83247 Q11443 Q183584 Q2844 Q11725 Q73156 Q1865 Q18342086 Q72778 Q187136 Q107401 Q1761 Q2069869 Q726993 Q3919 Q1530 Q2999 Q16666
(c(Q515),P1376,c(Q7275))
action greater
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q1000336
relation P1376
type Q515
[ANSWERS]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?g ) WHERE { ?d rdf:type ontology:Q515 . ?b rdf:type ontology:Q7275 . ?d property:P1376 ?b } GROUP BY ?d } . FILTER ( ?g > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { ?k rdf:type ontology:Q515 . resource:Q1000336 property:P1376 ?k } } }
Tunis Tirana Palembang Jayapura Addis Ababa Zhangjiakou Ezhou Ambon Bhopal Pretoria Kabul Kyiv Frankfurt Lugdunum Buenos Aires Kuching Manila Ulaanbaatar Seoul Kinshasa Washukanni Yogyakarta Dresden Bucharest Yerevan Brussels Jiankang Braunschweig Ho Chi Minh City Minas Tirith Muscat Fuzhou Oldenburg Vijaya Sarajevo Braga Kediri Lanzhou Brasília Chongqing Linfen Kuala Lumpur Oyo-Ile Taiyuan Luoyang Sivas Dublin Edoras Cotabato City Gaborone Baghdad Würzburg Nanjing
Buenos Aires Kyiv Dresden
action greater
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Tandil
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?g ) WHERE { ?d rdf:type ontology:city . ?b rdf:type ontology:state . ?d property:capital_of ?b } GROUP BY ?d } . FILTER ( ?g > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { ?k rdf:type ontology:city . resource:Tandil property:capital_of ?k } } }
[]