Simple Question (Direct)
Simple Question
Q2501220
P106
Q12737077
USER
What is the profession of Andrew Lonergan ?
(Q2501220,P106,c(Q12737077))
action filter_type
action find
entity Q2501220
relation P106
type Q12737077
['Q2501220', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q2501220 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Andrew Lonergan
action filter_type
action find
entity Andrew Lonergan
relation occupation
type occupation
['Andrew Lonergan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Andrew_Lonergan property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2501220,P106,c(Q12737077))
action filter_type
action find
entity Q2501220
relation P106
type Q12737077
The profession of Andrew Lonergan is an [ANSWER]
['Q2501220', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q2501220 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
association football player
The profession of Andrew Lonergan is an association football player
association football player
action filter_type
action find
entity Andrew Lonergan
relation occupation
type occupation
['Andrew Lonergan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Andrew_Lonergan property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2501220
P54
Q1194951
USER
Which national sports team is Andrew Lonergan a member of ?
(Q2501220,P54,c(Q1194951))
action filter_type
action find
entity Q2501220
relation P54
type Q1194951
['Q2501220', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1194951 . resource:Q2501220 property:P54 ?e }
Andrew Lonergan
action filter_type
action find
entity Andrew Lonergan
relation member of sports team
type national sports team
['Andrew Lonergan', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:national_sports_team . resource:Andrew_Lonergan property:member_of_sports_team ?e }
[]
national sports team
Q163547
SYSTEM
Republic of Ireland national football team
Q163547
(Q2501220,P54,c(Q1194951))
action filter_type
action find
entity Q2501220
relation P54
type Q1194951
The [ANSWER] is Andrew Lonergan a member of
['Q2501220', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1194951 . resource:Q2501220 property:P54 ?e }
Republic of Ireland national football team
The Republic of Ireland national football team is Andrew Lonergan a member of
Republic of Ireland national football team
action filter_type
action find
entity Andrew Lonergan
relation member of sports team
type national sports team
['Andrew Lonergan', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:national_sports_team . resource:Andrew_Lonergan property:member_of_sports_team ?e }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19874639
Q1194951
USER
And how about Tom Jenkinson?
(Q19874639,P54,c(Q1194951))
action filter_type
action find
entity Q19874639
relation P54
type Q1194951
['Q19874639', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?m WHERE { resource:Q19874639 property:P54 ?m . ?m rdf:type ontology:Q1194951 }
Tom Jenkinson
action filter_type
action find
entity Tom Jenkinson
relation member of sports team
type national sports team
['Tom Jenkinson', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?m WHERE { resource:Tom_Jenkinson property:member_of_sports_team ?m . ?m rdf:type ontology:national_sports_team }
[]
national sports team
Q34044
SYSTEM
Scotland national football team
Q34044
(Q19874639,P54,c(Q1194951))
action filter_type
action find
entity Q19874639
relation P54
type Q1194951
[ANSWER]
['Q19874639', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?m WHERE { resource:Q19874639 property:P54 ?m . ?m rdf:type ontology:Q1194951 }
Scotland national football team
Scotland national football team
action filter_type
action find
entity Tom Jenkinson
relation member of sports team
type national sports team
['Tom Jenkinson', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?m WHERE { resource:Tom_Jenkinson property:member_of_sports_team ?m . ?m rdf:type ontology:national_sports_team }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3420794 Q2501220
P19
Q56061
USER
Which administrative territories were Andrew Lonergan or Raymond Delarosbil born ?
OR((Q2501220,P19,c(Q56061)), (Q3420794,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2501220
relation P19
action find
entity Q3420794
relation P19
type Q56061
{'OR': [['Q2501220', 'P19', {'concept': 'Q56061'}], ['Q3420794', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?l ) { ( resource:Q3420794 ) ( resource:Q2501220 ) } . ?l property:P19 ?c } . ?c rdf:type ontology:Q56061 }
Raymond Delarosbil Andrew Lonergan
action filter_type
action union
action find
entity Andrew Lonergan
relation place of birth
action find
entity Raymond Delarosbil
relation place of birth
type administrative territorial entity
{'OR': [['Andrew Lonergan', 'place of birth', {'concept': 'administrative territorial entity'}], ['Raymond Delarosbil', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?l ) { ( resource:Raymond_Delarosbil ) ( resource:Andrew_Lonergan ) } . ?l property:place_of_birth ?c } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q139654 Q184090
SYSTEM
Baie-Comeau, Preston
Q139654 Q184090
OR((Q2501220,P19,c(Q56061)), (Q3420794,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2501220
relation P19
action find
entity Q3420794
relation P19
type Q56061
Andrew Lonergan or Raymond Delarosbil were born in [ANSWERS]
{'OR': [['Q2501220', 'P19', {'concept': 'Q56061'}], ['Q3420794', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?l ) { ( resource:Q3420794 ) ( resource:Q2501220 ) } . ?l property:P19 ?c } . ?c rdf:type ontology:Q56061 }
Baie-Comeau Preston
Andrew Lonergan or Raymond Delarosbil were born in Baie-Comeau and Preston
Baie-Comeau Preston
action filter_type
action union
action find
entity Andrew Lonergan
relation place of birth
action find
entity Raymond Delarosbil
relation place of birth
type administrative territorial entity
{'OR': [['Andrew Lonergan', 'place of birth', {'concept': 'administrative territorial entity'}], ['Raymond Delarosbil', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?l ) { ( resource:Raymond_Delarosbil ) ( resource:Andrew_Lonergan ) } . ?l property:place_of_birth ?c } . ?c rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P19
Q502895
USER
How many people have birthplace at that administrative territory ?
(c(Q502895),P19,Q139654)
[{'concept': 'Q502895'}, 'P19', 'Q139654']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q139654 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'place of birth', 'Baie-Comeau']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Baie-Comeau . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q184090
SYSTEM
Did you mean Preston ?
(c(Q502895),P19,Q139654) (c(Q502895),P19,Q184090)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q139654'] [{'concept': 'Q502895'}, 'P19', 'Q184090']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q139654 . ?z rdf:type ontology:Q502895 }
Did you mean Preston ?
Preston
[{'concept': 'common name'}, 'place of birth', 'Baie-Comeau'] [{'concept': 'common name'}, 'place of birth', 'Preston']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Baie-Comeau . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Baie-Comeau. Could you tell me the answer for that?
(c(Q502895),P19,Q139654)
Q139654
[{'concept': 'Q502895'}, 'P19', 'Q139654']
[{'concept': 'common name'}, 'place of birth', 'Baie-Comeau']
[]
SYSTEM
20
Q3026180 Q3293926 Q595106 Q18332063 Q533596 Q3119796 Q15975307 Q3442213 Q3017205 Q3507308 Q3015777 Q3311547 Q2847570 Q3369272 Q3420794 Q128563 Q3084311 Q3382953 Q3179014 Q2897909
(c(Q502895),P19,Q139654)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q139654']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q139654 . ?z rdf:type ontology:Q502895 }
Diane Barbeau Marjolain Dufour Yves Bélanger Andrea Jourdan Manon Briand Guillaume Demers Marie-Pier Murray-Méthot Rosalie Lessard Dave Morissette Sylvie Drapeau Dany Dubé Michèle-Barbara Pelletier André Côté Patrick Bourgeois Raymond Delarosbil Brian Mulroney François Corriveau Pierre-Cédric Labrie Jimmy Bonneau Bernard Fortin
20
[{'concept': 'common name'}, 'place of birth', 'Baie-Comeau']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Baie-Comeau . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184090
P190
Q56061
USER
Which administrative territory is the sister city of Preston ?
(Q184090,P190,c(Q56061))
action filter_type
action find
entity Q184090
relation P190
type Q56061
['Q184090', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q184090 property:P190 ?k . ?k rdf:type ontology:Q56061 }
Preston
action filter_type
action find
entity Preston
relation sister city
type administrative territorial entity
['Preston', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Preston property:sister_city ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3050
SYSTEM
Recklinghausen
Q3050
(Q184090,P190,c(Q56061))
action filter_type
action find
entity Q184090
relation P190
type Q56061
[ANSWER] is the sister city of Preston
['Q184090', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q184090 property:P190 ?k . ?k rdf:type ontology:Q56061 }
Recklinghausen
Recklinghausen is the sister city of Preston
Recklinghausen
action filter_type
action find
entity Preston
relation sister city
type administrative territorial entity
['Preston', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Preston property:sister_city ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q20667921
USER
How many administrative territories or french administrative divisions are twin town of that administrative territory ?
(c(Q56061),P190,Q3050) (c(Q20667921),P190,Q3050) (c(Q56061),P190,Q3050) (c(Q20667921),P190,Q3050)
action count
action union
action filter_type
action find_reverse
entity Q3050
relation P190
type Q56061
action filter_type
action find_reverse
entity Q3050
relation P190
type Q20667921
[{'concept': 'Q56061'}, 'P190', 'Q3050'] [{'concept': 'Q20667921'}, 'P190', 'Q3050'] [{'concept': 'Q56061'}, 'P190', 'Q3050'] [{'concept': 'Q20667921'}, 'P190', 'Q3050']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ?o . VALUES ( ?o ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } }
action count
action union
action filter_type
action find_reverse
entity Recklinghausen
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Recklinghausen
relation sister city
type type of french administrative division
[{'concept': 'administrative territorial entity'}, 'sister city', 'Recklinghausen'] [{'concept': 'type of french administrative division'}, 'sister city', 'Recklinghausen'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Recklinghausen'] [{'concept': 'type of french administrative division'}, 'sister city', 'Recklinghausen']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ?o . VALUES ( ?o ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } }
[]
administrative territorial entity type of french administrative division
SYSTEM
4
Q184090 Q126084 Q26421 Q193826
(c(Q56061),P190,Q3050) (c(Q20667921),P190,Q3050) (c(Q56061),P190,Q3050) (c(Q20667921),P190,Q3050)
action count
action union
action filter_type
action find_reverse
entity Q3050
relation P190
type Q56061
action filter_type
action find_reverse
entity Q3050
relation P190
type Q20667921
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q3050'] [{'concept': 'Q20667921'}, 'P190', 'Q3050'] [{'concept': 'Q56061'}, 'P190', 'Q3050'] [{'concept': 'Q20667921'}, 'P190', 'Q3050']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ?o . VALUES ( ?o ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } }
Preston Acre Dordrecht Douai
4
action count
action union
action filter_type
action find_reverse
entity Recklinghausen
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Recklinghausen
relation sister city
type type of french administrative division
[{'concept': 'administrative territorial entity'}, 'sister city', 'Recklinghausen'] [{'concept': 'type of french administrative division'}, 'sister city', 'Recklinghausen'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Recklinghausen'] [{'concept': 'type of french administrative division'}, 'sister city', 'Recklinghausen']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ?o . VALUES ( ?o ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q41185 Q19874639
P19 P190
Q56061
USER
Which administrative territories were Tom Jenkinson born in or are twin cities of Caen ?
OR((Q19874639,P19,c(Q56061)), (Q41185,P190,c(Q56061)))
action filter_type
action union
action find
entity Q19874639
relation P19
action find
entity Q41185
relation P190
type Q56061
{'OR': [['Q19874639', 'P19', {'concept': 'Q56061'}], ['Q41185', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q19874639 property:P19 ?f } UNION { resource:Q41185 property:P190 ?f } } . ?f rdf:type ontology:Q56061 }
Caen Tom Jenkinson
action filter_type
action union
action find
entity Tom Jenkinson
relation place of birth
action find
entity Caen
relation sister city
type administrative territorial entity
{'OR': [['Tom Jenkinson', 'place of birth', {'concept': 'administrative territorial entity'}], ['Caen', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Tom_Jenkinson property:place_of_birth ?f } UNION { resource:Caen property:sister_city ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q991209 Q600693 Q23436 Q185289 Q72259 Q88 Q23197 Q6225
SYSTEM
Stevens Point, Thiès, Edinburgh, Pernik, Portsmouth, Alexandria, Nashville, Coventry
Q991209 Q600693 Q23436 Q185289 Q72259 Q88 Q23197 Q6225
OR((Q19874639,P19,c(Q56061)), (Q41185,P190,c(Q56061)))
action filter_type
action union
action find
entity Q19874639
relation P19
action find
entity Q41185
relation P190
type Q56061
[ANSWERS] Tom Jenkinson were born in or are twin cities of Caen
{'OR': [['Q19874639', 'P19', {'concept': 'Q56061'}], ['Q41185', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q19874639 property:P19 ?f } UNION { resource:Q41185 property:P190 ?f } } . ?f rdf:type ontology:Q56061 }
Stevens Point Thiès Edinburgh Pernik Portsmouth Alexandria Nashville Coventry
Stevens Point, Thiès, Edinburgh, Pernik, Portsmouth, Alexandria, Nashville and Coventry Tom Jenkinson were born in or are twin cities of Caen
Stevens Point Thiès Edinburgh Pernik Portsmouth Alexandria Nashville Coventry
action filter_type
action union
action find
entity Tom Jenkinson
relation place of birth
action find
entity Caen
relation sister city
type administrative territorial entity
{'OR': [['Tom Jenkinson', 'place of birth', {'concept': 'administrative territorial entity'}], ['Caen', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Tom_Jenkinson property:place_of_birth ?f } UNION { resource:Caen property:sister_city ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q56061 Q2342494 Q166142
USER
Which administrative territories are atmost 417 collectables and applications set in ?
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action atmost
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
value 417
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?r ) WHERE { VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } . ?f rdf:type ?j } GROUP BY ?d } . FILTER ( ?r <= 417 ) }
action atmost
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
value 417
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?r ) WHERE { VALUES ( ?j ) { ( ontology:collectable ) ( ontology:application ) } . ?f rdf:type ?j } GROUP BY ?d } . FILTER ( ?r <= 417 ) }
[]
administrative territorial entity collectable application
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
Q3579 Q1715 Q704257 Q7436 Q34804 Q21075005 Q990616 Q1183 Q3711 Q33486 Q1874 Q331990 Q1826473 Q210292 Q28729 Q25286 Q25287 Q128499 Q2280 Q3805 Q501661 Q804569 Q49233 Q1255278 Q42096 Q18808 Q467664 Q23725 Q1050826 Q4093 Q3659 Q16563 Q23337 Q8692 Q2656 Q1289 Q10690 Q585 Q1425428 Q124739 Q3413045 Q79873 Q81788 Q43453 Q1754 Q1022 Q308891 Q2500974 Q7054337 Q90 Q101625 Q48320 Q80985 Q12892 Q215646 Q80734 Q7880 Q82858 Q1930 Q1435589 Q597 Q690 Q257536 Q334 Q22889 Q3437 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q667268 Q25319 Q33935 Q54140 Q180294 Q8818 Q34739 Q215177 Q27168 Q16555 Q2048321 Q1335 Q594807 Q1891 Q39121 Q9427 Q48274 Q83317 Q12340599 Q262483 Q186237 Q5083 Q23154 Q2567585 Q37776 Q1489 Q209055 Q7094142 Q3561 Q11864 Q83387 Q406 Q462799 Q8673 Q2861 Q11703 Q2868 Q8678 Q490 Q6346 Q495 Q2044 Q48370 Q36036 Q3703 Q208287 Q2141 Q192517 Q54212 Q23436 Q43301 Q490584 Q3141 Q3630 Q1246235 Q17151 Q237 Q6046 Q25416 Q239 Q25410 Q16558 Q16559 Q5212975 Q16554 Q753121 Q16556 Q16557 Q8686 Q994 Q35178 Q113546 Q3130 Q3037 Q52437 Q1297 Q723329 Q490737 Q1563 Q900 Q131491 Q1741 Q14815 Q1748 Q169492 Q26881 Q13670 Q1911961 Q85 Q128321 Q42462 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q37320 Q25390 Q214178 Q735022 Q45301 Q25395 Q11592 Q78 Q34863 Q72 Q71 Q70 Q178168 Q37100 Q16869 Q2214 Q38022 Q174 Q172 Q270 Q2028 Q37066 Q486439 Q2073798 Q26887 Q184587 Q208472 Q79980 Q82490 Q79985 Q49241 Q49243 Q3766 Q472 Q41604 Q1070 Q3590079 Q837165 Q41819 Q1861 Q2177880 Q5092 Q1011683 Q41329 Q956 Q1555 Q1490 Q1491 Q1492 Q16562 Q6225 Q437 Q124539 Q2118905 Q134672 Q1479 Q387047 Q18419 Q1780 Q1781 Q2302168 Q690052 Q2090 Q2073211 Q1851 Q127856 Q2807 Q18705 Q3820 Q621549 Q49149 Q1353 Q1352 Q676689 Q271411 Q13496 Q27119 Q1524 Q220 Q340 Q125434 Q494728 Q25331 Q25231 Q25230 Q617 Q612 Q430464 Q21855637 Q3305102 Q990168 Q1015727 Q24639 Q34713 Q1218 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q2634 Q863058 Q1659757 Q268873 Q26 Q1726 Q530090 Q34404 Q8717 Q3825 Q64 Q65 Q159232 Q61 Q62 Q1757 Q18125 Q5818 Q1867 Q384 Q5813 Q12439 Q27393 Q12191 Q126148 Q202337 Q23556 Q837478 Q184345 Q13362 Q6537 Q6106 Q49111 Q499196 Q495373 Q10313 Q42810 Q49255 Q3640 Q647 Q641 Q727 Q649 Q41621 Q3012 Q2301524 Q852778 Q3483936 Q3358921 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q43919 Q1449 Q47048 Q1764 Q34932 Q12340625 Q2211 Q41262 Q2704 Q47716 Q1040 Q6441 Q165972 Q100 Q374748 Q485172 Q26793 Q10686 Q4190 Q897848 Q165413 Q350 Q62677 Q1574020 Q3992 Q1781238 Q3110 Q3114 Q743521 Q24826 Q1348 Q630533 Q1156 Q3619316 Q2751 Q41876 Q485186 Q42448 Q41970 Q34647 Q33986 Q1085
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action atmost
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
value 417
[ANSWERS] are atmost 417 collectables and applications set in
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?r ) WHERE { VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } . ?f rdf:type ?j } GROUP BY ?d } . FILTER ( ?r <= 417 ) }
Tripoli Hanover Albany Gatchina Albuquerque Serritslev Harwich Puerto Rico Belgrade Hartford Odessa Korean Demilitarized Zone Tversted Yozgat Kozhikode Uppsala Gothenburg Yalta Minsk Amman Schleswig Bala, Ontario Orlando Dragør Miryang Pyongyang Butte Byzantium Greater Los Angeles Area Glasgow N'Djamena Memphis Salt Lake City Bilbao Palermo Grenoble Cardiff Oslo Newcastle upon Tyne Tijuana Farsø Tombstone Giza Plzeň Stockholm Stuttgart special wards of Tokyo Richmond North Buxton, Ontario Paris Marrakesh Kōbe Fes Antwerp Edo Campagna Toulouse Sigmaringen Ottawa Folsom Lisbon Delft Janesville Singapore Bath Perugia Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Nevada City Aarhus Tel Aviv Salem Jaffa Valencia Dayton Skagen Randers Houston Varde Montevideo Søborg Bologna Leeds Timbuktu Nashua Mosul Vedersø Deadwood Joensuu Seattle Bristol Dybbøl Besançon Mexico City Torquay Onllwyn Algiers Junagadh Diyarbakır Istanbul Evanston Lagos Rostock United States Virgin Islands Lima Rio de Janeiro Milan Indianapolis Turin Florence Manchester Lviv Bamako Kauniainen Halifax Boulder Barnsley Edinburgh Fresno Flint Melbourne Jakarta Nørresundby Thessaloniki Vatican City Novara Stavanger Brussels Aalborg Fort Worth Austin Damsholte Denver Atacames Phoenix Dallas Shanghai Tbilisi Kuwait City Blackeberg Sydney Kathmandu Murano Chicago Ascot Bloomington Havana Kazan Brighton Vienna Weißenfels Copenhagen Neukölln Helsingør Syracuse Thorning Cairo Midland York Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Cleveland Leeuwarden Nablus Walnut Grove, Minnesota Trabzon Newark Sonoma Basel Oklahoma City Zürich Geneva Bern Mitrovica Auckland Constantinople Pskov St. Louis São Paulo Toronto Warsaw Verona Bismarck Cedar Rapids Welch Davenport Grand Rapids Bingöl Varanasi Lyme Regis Kodiak Lexington Riverside Damascus Sofia Amiens Ahmedabad Hvidovre Hyrylä Kansas City Bangkok Ågerup Baltimore Rødbyhavn Linz Beijing Guatemala City Tokyo La Paz Barcelona El Paso Coventry Ljubljana Whitechapel Purley Exeter Bordeaux Malibu Brooklyn Bratislava Budapest Kjellerup Trebinje Nuremberg Talamone Arkhangelsk Beverly Hills Madrid Bajram Curri Beirut Inglewood Nantucket Delhi Chennai Gravesend Malindi Brindisi Kolding Athens Rome Montreal Port Elizabeth West Covina Odense Svalbard Guernsey Padua Dubai Dearborn Hvilsager Tsamantas Keighley Mbale Vancouver Salzburg Jerusalem Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Naples Summerside Gimli Newport Beach Northern Ireland Munich Jerichow New Orleans Seville Libreville Berlin Los Angeles Santa Cruz Washington, D.C. San Francisco Helsinki Manchester Córdoba Taipei Skopje Canary Islands Detroit Herning Nantes Tangier Nauplion Atlanta Sabinov Viña del Mar Ferrara Vicenza Portland Cambridge Costa Mesa Visalia Donostia/San Sebastián Le Havre Tampa Ankara Rennes Venice Amsterdam Moscow Haifa Ulm Stege Whitby Sils Maria Overschild Jamestown Ramallah Southampton Olympia Łódź Bonn Salem Genoa Oulu Reykjavík Brisbane Vejlby Malmö Nottingham Pescara Charleston Karlsruhe Montpellier Fort Lauderdale Boston Jenin Ann Arbor Bergen Belfast Passau Brande Baikonur Cambridge Karakorum The Hamptons Liège Stureby San Salvador Canberra Scarborough Liverpool Kolkata Tire Mumbai Grenå Siena Reims Key West Sheffield Pyatigorsk Johannesburg Valparaíso Prague
Prague, Zürich and Moscow are atmost 417 collectables and applications set in
Prague Zürich Moscow
action atmost
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
value 417
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?r ) WHERE { VALUES ( ?j ) { ( ontology:collectable ) ( ontology:application ) } . ?f rdf:type ?j } GROUP BY ?d } . FILTER ( ?r <= 417 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P17
Q15617994 Q7275
USER
How many administrative territories or states are that administrative territory located in ?
(Q1085,P17,c(Q15617994)) (Q1085,P17,c(Q7275)) (Q1085,P17,c(Q15617994)) (Q1085,P17,c(Q7275)) (Q72,P17,c(Q15617994)) (Q72,P17,c(Q7275)) (Q649,P17,c(Q15617994)) (Q649,P17,c(Q7275))
['Q1085', 'P17', {'concept': 'Q15617994'}] ['Q1085', 'P17', {'concept': 'Q7275'}] ['Q1085', 'P17', {'concept': 'Q15617994'}] ['Q1085', 'P17', {'concept': 'Q7275'}] ['Q72', 'P17', {'concept': 'Q15617994'}] ['Q72', 'P17', {'concept': 'Q7275'}] ['Q649', 'P17', {'concept': 'Q15617994'}] ['Q649', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q2084234 property:Q6256 ?z } UNION { resource:Q2084234 property:Q6256 ?y } UNION { resource:Q2084234 property:Q6256 ?z } UNION { resource:Q2084234 property:Q6256 ?y } UNION { resource:Q72 property:Q6256 ?z } UNION { resource:Q72 property:Q6256 ?y } UNION { resource:Q499927 property:Q6256 ?z } UNION { resource:Q499927 property:Q6256 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q7275 }
['Prague', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prague', 'country', {'concept': 'state'}] ['Prague', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prague', 'country', {'concept': 'state'}] ['Zürich', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Zürich', 'country', {'concept': 'state'}] ['Moscow', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moscow', 'country', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Prague property:country ?z } UNION { resource:Prague property:country ?y } UNION { resource:Prague property:country ?z } UNION { resource:Prague property:country ?y } UNION { resource:Zürich property:country ?z } UNION { resource:Zürich property:country ?y } UNION { resource:Moscow property:country ?z } UNION { resource:Moscow property:country ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:state }
[]
designation for an administrative territorial entity state
Quantitative|Count|Mult. entity type|Clarification
Q72
SYSTEM
Did you mean Zürich ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q2084234 property:Q6256 ?z } UNION { resource:Q2084234 property:Q6256 ?y } UNION { resource:Q2084234 property:Q6256 ?z } UNION { resource:Q2084234 property:Q6256 ?y } UNION { resource:Q72 property:Q6256 ?z } UNION { resource:Q72 property:Q6256 ?y } UNION { resource:Q499927 property:Q6256 ?z } UNION { resource:Q499927 property:Q6256 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q7275 }
Did you mean Zürich ?
Zürich
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Prague property:country ?z } UNION { resource:Prague property:country ?y } UNION { resource:Prague property:country ?z } UNION { resource:Prague property:country ?y } UNION { resource:Zürich property:country ?z } UNION { resource:Zürich property:country ?y } UNION { resource:Moscow property:country ?z } UNION { resource:Moscow property:country ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:state }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Prague. Could you tell me the answer for that?
(Q1085,P17,c(Q15617994)) (Q1085,P17,c(Q7275)) (Q1085,P17,c(Q15617994)) (Q1085,P17,c(Q7275)) (Q72,P17,c(Q15617994)) (Q72,P17,c(Q7275)) (Q649,P17,c(Q15617994)) (Q649,P17,c(Q7275))
Q1085
['Q1085', 'P17', {'concept': 'Q15617994'}] ['Q1085', 'P17', {'concept': 'Q7275'}] ['Q1085', 'P17', {'concept': 'Q15617994'}] ['Q1085', 'P17', {'concept': 'Q7275'}] ['Q72', 'P17', {'concept': 'Q15617994'}] ['Q72', 'P17', {'concept': 'Q7275'}] ['Q649', 'P17', {'concept': 'Q15617994'}] ['Q649', 'P17', {'concept': 'Q7275'}]
['Prague', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prague', 'country', {'concept': 'state'}] ['Prague', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prague', 'country', {'concept': 'state'}] ['Zürich', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Zürich', 'country', {'concept': 'state'}] ['Moscow', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moscow', 'country', {'concept': 'state'}]
[]
SYSTEM
6
Q213 Q42585 Q33946 Q152750 Q2162698 Q131964
(Q1085,P17,c(Q15617994)) (Q1085,P17,c(Q7275)) (Q1085,P17,c(Q15617994)) (Q1085,P17,c(Q7275)) (Q72,P17,c(Q15617994)) (Q72,P17,c(Q7275)) (Q649,P17,c(Q15617994)) (Q649,P17,c(Q7275))
[ANSWER]
['Q1085', 'P17', {'concept': 'Q15617994'}] ['Q1085', 'P17', {'concept': 'Q7275'}] ['Q1085', 'P17', {'concept': 'Q15617994'}] ['Q1085', 'P17', {'concept': 'Q7275'}] ['Q72', 'P17', {'concept': 'Q15617994'}] ['Q72', 'P17', {'concept': 'Q7275'}] ['Q649', 'P17', {'concept': 'Q15617994'}] ['Q649', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q2084234 property:Q6256 ?z } UNION { resource:Q2084234 property:Q6256 ?y } UNION { resource:Q2084234 property:Q6256 ?z } UNION { resource:Q2084234 property:Q6256 ?y } UNION { resource:Q72 property:Q6256 ?z } UNION { resource:Q72 property:Q6256 ?y } UNION { resource:Q499927 property:Q6256 ?z } UNION { resource:Q499927 property:Q6256 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q7275 }
Czech Republic Kingdom of Bohemia Czechoslovakia Protectorate of Bohemia and Moravia Duchy of Bohemia Austrian Empire
6
['Prague', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prague', 'country', {'concept': 'state'}] ['Prague', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prague', 'country', {'concept': 'state'}] ['Zürich', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Zürich', 'country', {'concept': 'state'}] ['Moscow', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moscow', 'country', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Prague property:country ?z } UNION { resource:Prague property:country ?y } UNION { resource:Prague property:country ?z } UNION { resource:Prague property:country ?y } UNION { resource:Zürich property:country ?z } UNION { resource:Zürich property:country ?y } UNION { resource:Moscow property:country ?z } UNION { resource:Moscow property:country ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:state }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1085
P47
Q1048835 Q515
USER
How many political territories and cities do Prague share a border with ?
(c(Q1048835),P47,Q1085) (c(Q515),P47,Q1085)
action count
action union
action filter_type
action find_reverse
entity Q1085
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q1085
relation P47
type Q515
[{'concept': 'Q1048835'}, 'P47', 'Q1085'] [{'concept': 'Q515'}, 'P47', 'Q1085']
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { VALUES ( ?w ) { ( ontology:Q1048835 ) ( ontology:Q515 ) } . ?o rdf:type ?w }
Prague
action count
action union
action filter_type
action find_reverse
entity Prague
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Prague
relation shares border with
type city
[{'concept': 'political territorial entity'}, 'shares border with', 'Prague'] [{'concept': 'city'}, 'shares border with', 'Prague']
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { VALUES ( ?w ) { ( ontology:political_territorial_entity ) ( ontology:city ) } . ?o rdf:type ?w }
[]
political territorial entity city
SYSTEM
1 political territories and 5 cities
Q330653 Q386988 Q1756968 Q188399 Q339112 Q1630623
(c(Q1048835),P47,Q1085) (c(Q515),P47,Q1085)
action count
action union
action filter_type
action find_reverse
entity Q1085
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q1085
relation P47
type Q515
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q1085'] [{'concept': 'Q515'}, 'P47', 'Q1085']
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { VALUES ( ?w ) { ( ontology:Q1048835 ) ( ontology:Q515 ) } . ?o rdf:type ?w }
Úvaly Říčany Roztoky Central Bohemian Region Černošice Hostivice
1 political territories and 5 cities
action count
action union
action filter_type
action find_reverse
entity Prague
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Prague
relation shares border with
type city
[{'concept': 'political territorial entity'}, 'shares border with', 'Prague'] [{'concept': 'city'}, 'shares border with', 'Prague']
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { VALUES ( ?w ) { ( ontology:political_territorial_entity ) ( ontology:city ) } . ?o rdf:type ?w }
[]