Simple Question (Direct)
Simple Question
Q2121029
P27
Q15617994
USER
Which administrative territory is Anand Mahindra a civilian of ?
(Q2121029,P27,c(Q15617994))
action filter_type
action find
entity Q2121029
relation P27
type Q15617994
['Q2121029', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q2121029 property:P27 ?r }
Anand Mahindra
action filter_type
action find
entity Anand Mahindra
relation country of citizenship
type designation for an administrative territorial entity
['Anand Mahindra', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Anand_Mahindra property:country_of_citizenship ?r }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q2121029,P27,c(Q15617994))
action filter_type
action find
entity Q2121029
relation P27
type Q15617994
In [ANSWER] is Anand Mahindra a civilian of
['Q2121029', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q2121029 property:P27 ?r }
India
In India is Anand Mahindra a civilian of
India
action filter_type
action find
entity Anand Mahindra
relation country of citizenship
type designation for an administrative territorial entity
['Anand Mahindra', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Anand_Mahindra property:country_of_citizenship ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q668
P163
Q14660
USER
What is associated with that administrative territory ?
(Q668,P163,c(Q14660))
action filter_type
action find
entity Q668
relation P163
type Q14660
['Q668', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?g WHERE { resource:Q668 property:P163 ?g . ?g rdf:type ontology:Q14660 }
India
action filter_type
action find
entity India
relation flag
type flag
['India', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?g WHERE { resource:India property:flag ?g . ?g rdf:type ontology:flag }
[]
flag
Q41673
SYSTEM
flag of India
Q41673
(Q668,P163,c(Q14660))
action filter_type
action find
entity Q668
relation P163
type Q14660
In [ANSWER] is associated with that administrative territory
['Q668', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?g WHERE { resource:Q668 property:P163 ?g . ?g rdf:type ontology:Q14660 }
flag of India
In flag of India is associated with that administrative territory
flag of India
action filter_type
action find
entity India
relation flag
type flag
['India', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?g WHERE { resource:India property:flag ?g . ?g rdf:type ontology:flag }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P85
Q7725634
USER
Which is the national anthem of India ?
(Q668,P85,c(Q7725634))
action filter_type
action find
entity Q668
relation P85
type Q7725634
['Q668', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?s WHERE { resource:Q668 property:P85 ?s . ?s rdf:type ontology:Q7725634 }
India
action filter_type
action find
entity India
relation anthem
type literary work
['India', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?s WHERE { resource:India property:anthem ?s . ?s rdf:type ontology:literary_work }
[]
literary work
Q83099
SYSTEM
Jana Gana Mana
Q83099
(Q668,P85,c(Q7725634))
action filter_type
action find
entity Q668
relation P85
type Q7725634
The national anthem of India is the [ANSWER]
['Q668', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?s WHERE { resource:Q668 property:P85 ?s . ?s rdf:type ontology:Q7725634 }
Jana Gana Mana
The national anthem of India is the Jana Gana Mana
Jana Gana Mana
action filter_type
action find
entity India
relation anthem
type literary work
['India', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?s WHERE { resource:India property:anthem ?s . ?s rdf:type ontology:literary_work }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7318
Q7725634
USER
And how about Nazi Germany?
(Q7318,P85,c(Q7725634))
action filter_type
action find
entity Q7318
relation P85
type Q7725634
['Q7318', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?t WHERE { resource:Q7318 property:P85 ?t . ?t rdf:type ontology:Q7725634 }
Nazi Germany
action filter_type
action find
entity Nazi Germany
relation anthem
type literary work
['Nazi Germany', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?t WHERE { resource:Nazi_Germany property:anthem ?t . ?t rdf:type ontology:literary_work }
[]
literary work
Q44042
SYSTEM
Das Lied der Deutschen
Q44042
(Q7318,P85,c(Q7725634))
action filter_type
action find
entity Q7318
relation P85
type Q7725634
[ANSWER]
['Q7318', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?t WHERE { resource:Q7318 property:P85 ?t . ?t rdf:type ontology:Q7725634 }
Das Lied der Deutschen
Das Lied der Deutschen
action filter_type
action find
entity Nazi Germany
relation anthem
type literary work
['Nazi Germany', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?t WHERE { resource:Nazi_Germany property:anthem ?t . ?t rdf:type ontology:literary_work }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q7725634 Q386724
USER
How many works represents a fictional universe described in exactly 2 literary works ?
(c(Q386724),P1445,c(Q7725634))
action count
action equal
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
value 2
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?z ) WHERE { ?b property:P1445 ?x . ?b rdf:type ontology:Q386724 . ?x rdf:type ontology:Q7725634 } GROUP BY ?b } . FILTER ( ?z = 2 ) }
action count
action equal
action find_tuple_counts
relation fictional universe described in
type work
type literary work
value 2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?z ) WHERE { ?b property:fictional_universe_described_in ?x . ?b rdf:type ontology:work . ?x rdf:type ontology:literary_work } GROUP BY ?b } . FILTER ( ?z = 2 ) }
[]
literary work work
SYSTEM
1
Q384426
(c(Q386724),P1445,c(Q7725634))
action count
action equal
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
value 2
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?z ) WHERE { ?b property:P1445 ?x . ?b rdf:type ontology:Q386724 . ?x rdf:type ontology:Q7725634 } GROUP BY ?b } . FILTER ( ?z = 2 ) }
Pirates of the Caribbean
1
action count
action equal
action find_tuple_counts
relation fictional universe described in
type work
type literary work
value 2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?z ) WHERE { ?b property:fictional_universe_described_in ?x . ?b rdf:type ontology:work . ?x rdf:type ontology:literary_work } GROUP BY ?b } . FILTER ( ?z = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q502712 Q7318
P36
Q56061
USER
Which administrative territories are called the capital of Nazi Germany or Otsego County ?
OR((Q7318,P36,c(Q56061)), (Q502712,P36,c(Q56061)))
action filter_type
action union
action find
entity Q7318
relation P36
action find
entity Q502712
relation P36
type Q56061
{'OR': [['Q7318', 'P36', {'concept': 'Q56061'}], ['Q502712', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?p ) { ( resource:Q7318 ) ( resource:Q502712 ) } . ?p property:P36 ?r } . ?r rdf:type ontology:Q56061 }
Otsego County Nazi Germany
action filter_type
action union
action find
entity Nazi Germany
relation capital
action find
entity Otsego County
relation capital
type administrative territorial entity
{'OR': [['Nazi Germany', 'capital', {'concept': 'administrative territorial entity'}], ['Otsego County', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?p ) { ( resource:Nazi_Germany ) ( resource:Otsego_County ) } . ?p property:capital ?r } . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q2300663
SYSTEM
Berlin, Gaylord
Q64 Q2300663
OR((Q7318,P36,c(Q56061)), (Q502712,P36,c(Q56061)))
action filter_type
action union
action find
entity Q7318
relation P36
action find
entity Q502712
relation P36
type Q56061
[ANSWERS] are called the capital of Nazi Germany or Otsego County
{'OR': [['Q7318', 'P36', {'concept': 'Q56061'}], ['Q502712', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?p ) { ( resource:Q7318 ) ( resource:Q502712 ) } . ?p property:P36 ?r } . ?r rdf:type ontology:Q56061 }
Berlin Gaylord
Berlin and Gaylord are called the capital of Nazi Germany or Otsego County
Berlin Gaylord
action filter_type
action union
action find
entity Nazi Germany
relation capital
action find
entity Otsego County
relation capital
type administrative territorial entity
{'OR': [['Nazi Germany', 'capital', {'concept': 'administrative territorial entity'}], ['Otsego County', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?p ) { ( resource:Nazi_Germany ) ( resource:Otsego_County ) } . ?p property:capital ?r } . ?r rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q127159
P291
Q56061 Q2342494 Q571
USER
Which administrative territories are the publication regions of less number of collectables or books than Bletchley ?
(c(Q2342494)|c(Q571),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q127159
relation P291
type Q2342494
type Q571
[[{'concept': 'Q2342494'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?k WHERE { VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q571 ) } . ?o rdf:type ?u } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { { ?a rdf:type ontology:Q2342494 } UNION { ?a rdf:type ontology:Q571 } } . ?a property:P291 resource:Q127159 } } . FILTER ( ?i < ?d ) }
Bletchley
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Bletchley
relation place of publication
type collectable
type book
[[{'concept': 'collectable'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?k WHERE { VALUES ( ?u ) { ( ontology:collectable ) ( ontology:book ) } . ?o rdf:type ?u } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { { ?a rdf:type ontology:collectable } UNION { ?a rdf:type ontology:book } } . ?a property:place_of_publication resource:Bletchley } } . FILTER ( ?i < ?d ) }
[]
administrative territorial entity collectable book
Q406 Q956 Q1489
SYSTEM
Istanbul, Beijing, Mexico City
Q2536016 Q190583 Q2035368 Q3897 Q38511 Q130191 Q203619 Q80670 Q1544563 Q490595 Q11974 Q36378 Q10305 Q3404679 Q8692 Q23051 Q2656 Q4581188 Q8851 Q15688 Q12155 Q323801 Q15682 Q15684 Q170497 Q99151 Q39561 Q48329 Q7880 Q1930 Q949651 Q5831 Q22889 Q132572 Q6157 Q12411 Q1718 Q11125 Q8810 Q15283655 Q4713350 Q428829 Q1335 Q1034159 Q103717 Q28911 Q3400328 Q14323 Q186237 Q14325 Q180233 Q484799 Q14328 Q576110 Q1489 Q2020203 Q406 Q15468 Q6346 Q887 Q54217 Q1679567 Q15093 Q162279 Q17151 Q1191195 Q102217 Q237 Q16554 Q16555 Q16557 Q486306 Q1513 Q1296 Q1563 Q35381 Q1024911 Q193478 Q11959 Q35493 Q78 Q37100 Q38022 Q286048 Q1235510 Q15678 Q3183 Q172157 Q33935 Q582121 Q1861 Q14318 Q14314 Q15090 Q134620 Q956 Q15095 Q15098 Q437 Q8745 Q13580 Q2766547 Q2941325 Q12258 Q202158 Q1017331 Q49145 Q327022 Q12225 Q23154 Q10282 Q429676 Q672545 Q188304 Q617 Q634054 Q472 Q6576 Q9580 Q8356 Q735583 Q1724 Q11967 Q159232 Q207891 Q3395358 Q683512 Q3889 Q9125 Q5818 Q204382 Q27393 Q126148 Q771986 Q33405 Q79990 Q6537 Q10313 Q1295 Q59169 Q669171 Q204720 Q206988 Q3012 Q15699 Q485329 Q15695 Q985271 Q28848 Q15088 Q3366952 Q213898 Q193180 Q8757 Q47048 Q178277 Q192155 Q883 Q125080 Q12303 Q156990 Q40840 Q955640 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q646620 Q720627 Q215277 Q8826 Q14336 Q34647
(c(Q2342494)|c(Q571),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q127159
relation P291
type Q2342494
type Q571
[ANSWERS] are the publication regions of less number of collectables or books than Bletchley
[[{'concept': 'Q2342494'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?k WHERE { VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q571 ) } . ?o rdf:type ?u } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { { ?a rdf:type ontology:Q2342494 } UNION { ?a rdf:type ontology:Q571 } } . ?a property:P291 resource:Q127159 } } . FILTER ( ?i < ?d ) }
Crickhowell Mikkeli Tremadog Luanda Turku Norwich Kemi Mühlacker Hellerup Daytona Beach Las Palmas de Gran Canaria Fribourg Zaragoza Crumlin Bilbao Swansea Palermo Straume Málaga Ávila Soria Nampula Cádiz Segovia Gloucester Ourense Burbank Mariehamn Toulouse Ottawa Wilmington Melilla Bath Tiraspol Seinäjoki Pontevedra Düsseldorf Lugo Granada Elverum Alcones Caernarfon Montevideo Harstad Rovaniemi Lahti St Athan Mérida Joensuu Logroño Pori Marbella Santa Cruz de Tenerife Nauvoo Mexico City Rhyl Istanbul Badalona Indianapolis Yekaterinburg Norwalk Jakobstad Ciudad Real Kuopio Thessaloniki Mold Vitebsk Vatican City Denver Houston Dallas Pensacola Nagpur Ghent Havana Colombo Welshpool Buda Alicante Almaty Basel Auckland St. Louis New Glasgow, Nova Scotia Dolgellau Cáceres Perth Winchester Tel Aviv Bradenton Bangkok Vitoria-Gasteiz Santiago de Compostela Lleida Jyväskylä Beijing Albacete Cuenca Ljubljana Vigo Metro Manila 's-Hertogenbosch Corbin Sabadell Hämeenlinna Westport, County Mayo New Haven Rockville Murcia Bristol Pamplona Sereď Barmouth Sunderland Padua Conwy Sofia Irkutsk Burgos Valladolid Ylivieska Saarbrücken Huesca Santa Cruz Kokkola Kidwelly Savonlinna Maputo Winterthur Córdoba Kouvola Herning Tangier Chepstow Little Rock Christchurch Vicenza Donostia/San Sebastián Dortmund Mo i Rana Newtown Hereford Cheltenham Ulm León Ferrol Salamanca The Dalles Saint Paul Tarragona Alta Preveza Kajaani A Coruña Oulu Montvale Kotka Novosibirsk Vaasa Jerez de la Frontera Monmouth Tampere Glasgow Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Estella-Lizarra Kanhangad Jaffna Palma Teruel Johannesburg
Istanbul, Beijing and Mexico City are the publication regions of less number of collectables or books than Bletchley
Istanbul Beijing Mexico City
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Bletchley
relation place of publication
type collectable
type book
[[{'concept': 'collectable'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?k WHERE { VALUES ( ?u ) { ( ontology:collectable ) ( ontology:book ) } . ?o rdf:type ?u } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { { ?a rdf:type ontology:collectable } UNION { ?a rdf:type ontology:book } } . ?a property:place_of_publication resource:Bletchley } } . FILTER ( ?i < ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q71
P291
Q56061 Q2342494 Q571
USER
And how about Geneva?
(c(Q2342494)|c(Q571),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q71
relation P291
type Q2342494
type Q571
[[{'concept': 'Q2342494'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:P291 ?x . ?x rdf:type ontology:Q56061 . ?z rdf:type ontology:Q571 } UNION { ?z property:P291 ?x . ?x rdf:type ontology:Q56061 . ?z rdf:type ontology:Q2342494 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { ?h property:P291 resource:Q71 . { { ?h rdf:type ontology:Q571 } UNION { ?h rdf:type ontology:Q2342494 } } } } . FILTER ( ?v < ?r ) }
Geneva
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Geneva
relation place of publication
type collectable
type book
[[{'concept': 'collectable'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:place_of_publication ?x . ?x rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:book } UNION { ?z property:place_of_publication ?x . ?x rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:collectable } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { ?h property:place_of_publication resource:Geneva . { { ?h rdf:type ontology:book } UNION { ?h rdf:type ontology:collectable } } } } . FILTER ( ?v < ?r ) }
[]
administrative territorial entity collectable book
Q8686 Q1781 Q216
SYSTEM
Shanghai, Budapest, Vilnius
Q807 Q909146 Q2536016 Q2512312 Q190583 Q27918 Q736775 Q2035368 Q3897 Q38511 Q3711 Q130191 Q203619 Q393 Q80670 Q25286 Q1544563 Q490595 Q3808 Q501661 Q982367 Q3150 Q484678 Q11974 Q151920 Q13375 Q36378 Q4093 Q2560090 Q10305 Q3404679 Q23337 Q33959 Q987 Q8692 Q23051 Q2656 Q1289 Q4581188 Q8851 Q10690 Q25748 Q9920 Q15688 Q12155 Q323801 Q15682 Q15684 Q170497 Q1757 Q41876 Q749 Q99151 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q3846 Q81046 Q597 Q5831 Q22889 Q12892 Q5836 Q132572 Q6157 Q12411 Q1718 Q43631 Q8818 Q11125 Q8810 Q15283655 Q4713350 Q428829 Q1335 Q1895 Q1034159 Q1155 Q103717 Q28911 Q3400328 Q14323 Q186237 Q14325 Q180233 Q484799 Q14328 Q576110 Q5083 Q1524 Q1489 Q209055 Q2020203 Q3561 Q40347 Q406 Q234178 Q739452 Q15468 Q6346 Q887 Q576165 Q5465 Q2141 Q54217 Q1679567 Q2814 Q15093 Q162279 Q3141 Q671288 Q17151 Q1490 Q1191195 Q102217 Q237 Q334 Q16559 Q16554 Q16555 Q16557 Q486306 Q621 Q8686 Q994 Q1513 Q3130 Q192517 Q1296 Q3033 Q936183 Q1563 Q170263 Q35381 Q45412 Q87 Q40269 Q2081145 Q1024911 Q193478 Q5112 Q2103 Q1741 Q178093 Q191133 Q11959 Q35493 Q538915 Q78 Q2617448 Q37100 Q38022 Q36405 Q286048 Q1235510 Q15678 Q1931927 Q49241 Q3183 Q172157 Q1781 Q33935 Q582121 Q16567 Q1861 Q14318 Q14314 Q5092 Q15090 Q134620 Q956 Q15095 Q15098 Q437 Q8745 Q1479 Q13580 Q2766547 Q18419 Q2941325 Q12258 Q202158 Q1017331 Q2090 Q49145 Q42735 Q242478 Q327022 Q12225 Q23154 Q340 Q342 Q10282 Q26421 Q429676 Q672545 Q188304 Q617 Q634054 Q472 Q37995 Q6576 Q6761 Q28249 Q13666 Q761 Q9580 Q569661 Q2634 Q8356 Q3584 Q49179 Q735583 Q1724 Q11967 Q1729 Q8717 Q3519 Q65 Q159232 Q207891 Q2028 Q61 Q62 Q3395358 Q683512 Q3889 Q9125 Q5818 Q1867 Q204382 Q12439 Q27393 Q470445 Q126148 Q1352 Q771986 Q49229 Q33405 Q79990 Q8385 Q493794 Q6537 Q6106 Q2391194 Q10313 Q72259 Q1295 Q19785 Q647 Q193367 Q59169 Q669171 Q204720 Q206988 Q3012 Q24826 Q15699 Q485329 Q15696 Q15695 Q985271 Q28848 Q128306 Q15088 Q3366952 Q997170 Q203263 Q580 Q213898 Q193180 Q585 Q8757 Q47048 Q178277 Q192155 Q883 Q41262 Q125080 Q2066 Q12303 Q156990 Q3834 Q81137 Q40840 Q955640 Q281839 Q485172 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q172 Q216 Q646620 Q720627 Q13972 Q215277 Q8826 Q129610 Q179385 Q1348 Q29303 Q628667 Q127159 Q14336 Q34647
(c(Q2342494)|c(Q571),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q71
relation P291
type Q2342494
type Q571
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:P291 ?x . ?x rdf:type ontology:Q56061 . ?z rdf:type ontology:Q571 } UNION { ?z property:P291 ?x . ?x rdf:type ontology:Q56061 . ?z rdf:type ontology:Q2342494 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { ?h property:P291 resource:Q71 . { { ?h rdf:type ontology:Q571 } UNION { ?h rdf:type ontology:Q2342494 } } } } . FILTER ( ?v < ?r ) }
Lausanne Godalming Crickhowell Eppegem Mikkeli Bad Rappenau Toronto Tremadog Luanda Turku Belgrade Norwich Kemi Szczecin Mühlacker Uppsala Hellerup Daytona Beach Yaoundé Schleswig Mineola Jena Berkeley Las Palmas de Gran Canaria Tiberias Pisa Fribourg Glasgow Athol Zaragoza Crumlin Salt Lake City Nice New Delhi Bilbao Swansea Palermo Grenoble Straume Málaga Cardiff Gävle Haarlem Ávila Soria Nampula Cádiz Segovia Gloucester Helsinki Reims Groningen Ourense Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Minden Charleroi Lisbon Melilla Bath Antwerp Toledo Tiraspol Seinäjoki Pontevedra Düsseldorf Leiden Valencia Lugo Granada Elverum Alcones Caernarfon Montevideo Petrozavodsk Harstad Busto Arsizio Rovaniemi Lahti St Athan Mérida Joensuu Logroño Pori Marbella Santa Cruz de Tenerife Nauvoo Seattle Athens Mexico City Torquay Rhyl Algiers Norman Istanbul Bangor Garden City Badalona Indianapolis Yekaterinburg Warsaw Cape Town Halifax Norwalk Jakobstad Halle (Saale) Ciudad Real Kuopio Melbourne Bend Thessaloniki Tokyo Mold Vitebsk Vatican City Singapore Austin Denver Houston Dallas Pensacola Versailles Shanghai Tbilisi Nagpur Sydney Boulder Ghent Göttingen Tonbridge Havana Chester Colombo Coimbra Alexandria Porto Alegre Milborne Port Welshpool Buda Adelaide Bochum Vienna Poughkeepsie Fátima Alicante Almaty Mjölby Basel Edinburgh Auckland St. Louis Aberdeen New Glasgow, Nova Scotia Dolgellau Cáceres Bracon Ash Lexington Perth Winchester Budapest Tel Aviv Bradenton Columbus Bangkok Vitoria-Gasteiz Santiago de Compostela Baltimore Lleida Jyväskylä Beijing Albacete Cuenca Ljubljana Vigo Bordeaux Metro Manila 's-Hertogenbosch Brooklyn Corbin Sabadell Hämeenlinna Westport, County Mayo Nuremberg New Haven Olympia Levoča Rockville Murcia Bristol Montreal Quimper Pamplona Dordrecht Sereď Barmouth Sunderland Padua Conwy Sofia Yangon Irkutsk Livorno Concord Messina Białystok Burgos Königstein im Taunus Naples Valladolid Nový Jičín Worcester Ylivieska Saarbrücken Huesca Erfurt Seville Bari Los Angeles Santa Cruz Kokkola Verona Washington, D.C. San Francisco Kidwelly Savonlinna Maputo Winterthur Córdoba Taipei Kouvola Detroit Herning Prostějov Tangier Chennai Chepstow Durham Little Rock Christchurch Ostrava Dubuque Vicenza Portland Saint-Idesbald Donostia/San Sebastián Portsmouth Dortmund Harpenden Rennes Porvoo Mo i Rana Newtown Hereford Cheltenham Ulm Liverpool León Ferrol Zamora Salamanca The Dalles Saint Paul Denton Tarragona Alta Waterville Athens Łódź Preveza Kajaani Oslo A Coruña Oulu Montvale Kotka Novosibirsk Nottingham Vaasa Essen Jerez de la Frontera Monmouth Konstanz Olomouc Tampere Glasgow Englewood Cliffs, New Jersey Ann Arbor Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Toronto Vilnius Estella-Lizarra Kanhangad Tartu Jaffna Palma Galway Greenwich Kolkata Canterbury Spangenberg Bletchley Teruel Johannesburg
Shanghai Budapest Vilnius
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Geneva
relation place of publication
type collectable
type book
[[{'concept': 'collectable'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:place_of_publication ?x . ?x rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:book } UNION { ?z property:place_of_publication ?x . ?x rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:collectable } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { ?h property:place_of_publication resource:Geneva . { { ?h rdf:type ontology:book } UNION { ?h rdf:type ontology:collectable } } } } . FILTER ( ?v < ?r ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1781
P1376
Q2221906
USER
Which geographic location has that administrative territory has its first city ?
(Q1781,P1376,c(Q2221906))
action filter_type
action find
entity Q1781
relation P1376
type Q2221906
['Q1781', 'P1376', {'concept': 'Q2221906'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q2221906 . resource:Q1781 property:P1376 ?d }
Budapest
action filter_type
action find
entity Budapest
relation capital of
type geographic location
['Budapest', 'capital of', {'concept': 'geographic location'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:geographic_location . resource:Budapest property:capital_of ?d }
[]
geographic location
Clarification for simple ques.
Q216
SYSTEM
Did you mean Vilnius ?
Q8686 Q1781 Q216
(Q8686,P1376,c(Q2221906)) (Q1781,P1376,c(Q2221906)) (Q216,P1376,c(Q2221906))
[ANSWER]
['Q8686', 'P1376', {'concept': 'Q2221906'}] ['Q1781', 'P1376', {'concept': 'Q2221906'}] ['Q216', 'P1376', {'concept': 'Q2221906'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q2221906 . resource:Q1781 property:P1376 ?d }
Shanghai Budapest Vilnius
Did you mean Vilnius ?
Vilnius
['Shanghai', 'capital of', {'concept': 'geographic location'}] ['Budapest', 'capital of', {'concept': 'geographic location'}] ['Vilnius', 'capital of', {'concept': 'geographic location'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:geographic_location . resource:Budapest property:capital_of ?d }
[]
Simple Question (Coreferenced)
USER
No, I meant Budapest. Could you tell me the answer for that?
(Q1781,P1376,c(Q2221906))
Q1781
['Q1781', 'P1376', {'concept': 'Q2221906'}]
['Budapest', 'capital of', {'concept': 'geographic location'}]
[]
Q696970
SYSTEM
Lands of the Crown of Saint Stephen
Q696970
(Q1781,P1376,c(Q2221906))
action filter_type
action find
entity Q1781
relation P1376
type Q2221906
The [ANSWER] has that administrative territory has its first city
['Q1781', 'P1376', {'concept': 'Q2221906'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q2221906 . resource:Q1781 property:P1376 ?d }
Lands of the Crown of Saint Stephen
The Lands of the Crown of Saint Stephen has that administrative territory has its first city
Lands of the Crown of Saint Stephen
action filter_type
action find
entity Budapest
relation capital of
type geographic location
['Budapest', 'capital of', {'concept': 'geographic location'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:geographic_location . resource:Budapest property:capital_of ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q696970
P1376
Q56061
USER
Which administrative territory is the county seat for that geographic location ?
(c(Q56061),P1376,Q696970)
action filter_type
action find_reverse
entity Q696970
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q696970']
SELECT DISTINCT ?j WHERE { ?j property:P1376 resource:Q696970 . ?j rdf:type ontology:Q56061 }
Lands of the Crown of Saint Stephen
action filter_type
action find_reverse
entity Lands of the Crown of Saint Stephen
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Lands of the Crown of Saint Stephen']
SELECT DISTINCT ?j WHERE { ?j property:capital_of resource:Lands_of_the_Crown_of_Saint_Stephen . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(c(Q56061),P1376,Q696970)
action filter_type
action find_reverse
entity Q696970
relation P1376
type Q56061
[ANSWER] is the county seat for that geographic location
[{'concept': 'Q56061'}, 'P1376', 'Q696970']
SELECT DISTINCT ?j WHERE { ?j property:P1376 resource:Q696970 . ?j rdf:type ontology:Q56061 }
Budapest
Budapest is the county seat for that geographic location
Budapest
action filter_type
action find_reverse
entity Lands of the Crown of Saint Stephen
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Lands of the Crown of Saint Stephen']
SELECT DISTINCT ?j WHERE { ?j property:capital_of resource:Lands_of_the_Crown_of_Saint_Stephen . ?j rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1781 Q302789
P20
Q502895
USER
Does Aaron Stockard have that administrative territory as place of death ?
(Q302789,P20,Q1781)
action is_in
entity Q302789
action find
entity Q1781
relation P20
['Q302789', 'P20', 'Q1781']
ASK WHERE { resource:Q1781 property:P20 resource:Q302789 }
Budapest Aaron Stockard
action is_in
entity Aaron Stockard
action find
entity Budapest
relation place of death
['Aaron Stockard', 'place of death', 'Budapest']
ASK WHERE { resource:Budapest property:place_of_death resource:Aaron_Stockard }
[]
common name
SYSTEM
NO
(Q302789,P20,Q1781)
action is_in
entity Q302789
action find
entity Q1781
relation P20
[ANSWER]
['Q302789', 'P20', 'Q1781']
ASK WHERE { resource:Q1781 property:P20 resource:Q302789 }
No
action is_in
entity Aaron Stockard
action find
entity Budapest
relation place of death
['Aaron Stockard', 'place of death', 'Budapest']
ASK WHERE { resource:Budapest property:place_of_death resource:Aaron_Stockard }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q8686 Q705108 Q385973
P190
Q13220204
USER
Is Shanghai twin town of Samchon County and Soum Province ?
(Q8686,P190,Q705108) (Q8686,P190,Q385973)
action is_in
entity Q8686
action intersection
action find_reverse
entity Q705108
relation P190
action find_reverse
entity Q385973
relation P190
['Q8686', 'P190', 'Q705108'] ['Q8686', 'P190', 'Q385973']
ASK WHERE { resource:Q8686 property:P190 resource:Q385973 . resource:Q8686 property:P190 resource:Q705108 }
Shanghai Samchon County Soum Province
action is_in
entity Shanghai
action intersection
action find_reverse
entity Samchon County
relation sister city
action find_reverse
entity Soum Province
relation sister city
['Shanghai', 'sister city', 'Samchon County'] ['Shanghai', 'sister city', 'Soum Province']
ASK WHERE { resource:Shanghai property:sister_city resource:Soum_Province . resource:Shanghai property:sister_city resource:Samchon_County }
[]
second-level administrative country subdivision
SYSTEM
NO
(Q8686,P190,Q705108) (Q8686,P190,Q385973)
action is_in
entity Q8686
action intersection
action find_reverse
entity Q705108
relation P190
action find_reverse
entity Q385973
relation P190
[ANSWER]
['Q8686', 'P190', 'Q705108'] ['Q8686', 'P190', 'Q385973']
ASK WHERE { resource:Q8686 property:P190 resource:Q385973 . resource:Q8686 property:P190 resource:Q705108 }
No
action is_in
entity Shanghai
action intersection
action find_reverse
entity Samchon County
relation sister city
action find_reverse
entity Soum Province
relation sister city
['Shanghai', 'sister city', 'Samchon County'] ['Shanghai', 'sister city', 'Soum Province']
ASK WHERE { resource:Shanghai property:sister_city resource:Soum_Province . resource:Shanghai property:sister_city resource:Samchon_County }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1781 Q15244609
P190
Q56061
USER
Is Mangateparu the sister city of Budapest ?
(Q1781,P190,Q15244609)
action is_in
entity Q15244609
action find
entity Q1781
relation P190
['Q1781', 'P190', 'Q15244609']
ASK WHERE { resource:Q1781 property:P190 resource:Q15244609 }
Budapest Mangateparu
action is_in
entity Mangateparu
action find
entity Budapest
relation sister city
['Budapest', 'sister city', 'Mangateparu']
ASK WHERE { resource:Budapest property:sister_city resource:Mangateparu }
[]
administrative territorial entity
SYSTEM
NO
(Q1781,P190,Q15244609)
action is_in
entity Q15244609
action find
entity Q1781
relation P190
[ANSWER]
['Q1781', 'P190', 'Q15244609']
ASK WHERE { resource:Q1781 property:P190 resource:Q15244609 }
No
action is_in
entity Mangateparu
action find
entity Budapest
relation sister city
['Budapest', 'sister city', 'Mangateparu']
ASK WHERE { resource:Budapest property:sister_city resource:Mangateparu }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P551
Q502895
USER
Which people live in Budapest ?
(c(Q502895),P551,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q1781']
SELECT DISTINCT ?l WHERE { ?l property:P551 resource:Q1781 . ?l rdf:type ontology:Q502895 }
Budapest
action filter_type
action find_reverse
entity Budapest
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Budapest']
SELECT DISTINCT ?l WHERE { ?l property:residence resource:Budapest . ?l rdf:type ontology:common_name }
[]
common name
Q9036 Q12908 Q460696
SYSTEM
Nikola Tesla, George Soros, Márton Fülöp
Q1001760 Q264466 Q258965 Q1001426 Q553339 Q1009629 Q1214337 Q460696 Q270408 Q12908 Q1004428 Q370019 Q21067292 Q19823442 Q1002907 Q8076514 Q1109780 Q383341 Q1007376 Q26253992 Q6297974 Q22672560 Q7217571 Q1009626 Q9036 Q4349034 Q1002462 Q77284 Q281949 Q1003530 Q1000652 Q758074 Q22075509 Q540484
(c(Q502895),P551,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P551
type Q502895
[ANSWERS] live in Budapest
[{'concept': 'Q502895'}, 'P551', 'Q1781']
SELECT DISTINCT ?l WHERE { ?l property:P551 resource:Q1781 . ?l rdf:type ontology:Q502895 }
László Fitos Katalin Marosi Petra Mandula Tamás Filó Lajos Tichy Csaba Gercsák Kira Nagy Márton Fülöp Andrea Temesvári George Soros Márkó Futács Balázs Taróczy Péter Nagy Naomi Totka András Forgács Ádám Kellner Péter Kis Sándor Noszály István Gajda Julius Bokor Jozsef Krocsko Anna Mark Mózes Weinberger Balázs Gercsák Nikola Tesla János Kuszmann Katalin Fogl Gréta Arn Anikó Kapros Richárd Frank Csaba Ferkó Attila Balázs Mac Ruth Gábor Köves
Nikola Tesla, George Soros and Márton Fülöp live in Budapest
Nikola Tesla George Soros Márton Fülöp
action filter_type
action find_reverse
entity Budapest
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Budapest']
SELECT DISTINCT ?l WHERE { ?l property:residence resource:Budapest . ?l rdf:type ontology:common_name }
[]