Simple Question (Direct)
Simple Question
Q7002365
P19
Q56061
USER
Which administrative territory was Tiziano Ballarin born in ?
(Q7002365,P19,c(Q56061))
action filter_type
action find
entity Q7002365
relation P19
type Q56061
['Q7002365', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q7002365 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Tiziano Ballarin
action filter_type
action find
entity Tiziano Ballarin
relation place of birth
type administrative territorial entity
['Tiziano Ballarin', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Tiziano_Ballarin property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q490
SYSTEM
Milan
Q490
(Q7002365,P19,c(Q56061))
action filter_type
action find
entity Q7002365
relation P19
type Q56061
Tiziano Ballarin was born in [ANSWER]
['Q7002365', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q7002365 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Milan
Tiziano Ballarin was born in Milan
Milan
action filter_type
action find
entity Tiziano Ballarin
relation place of birth
type administrative territorial entity
['Tiziano Ballarin', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Tiziano_Ballarin property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q490
P17
Q15617994
USER
Which administrative territories do that administrative territory belong to ?
(Q490,P17,c(Q15617994))
action filter_type
action find
entity Q490
relation P17
type Q15617994
['Q490', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q490 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Milan
action filter_type
action find
entity Milan
relation country
type designation for an administrative territorial entity
['Milan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Milan property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q153529
SYSTEM
Italy, Duchy of Milan
Q38 Q153529
(Q490,P17,c(Q15617994))
action filter_type
action find
entity Q490
relation P17
type Q15617994
That administrative territory belong to Northern [ANSWERS]
['Q490', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q490 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Italy Duchy of Milan
That administrative territory belong to Northern Italy and Duchy of Milan
Italy Duchy of Milan
action filter_type
action find
entity Milan
relation country
type designation for an administrative territorial entity
['Milan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Milan property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q490
Q7275
USER
And which state?
(Q490,P17,c(Q7275))
action filter_type
action find
entity Q490
relation P17
type Q7275
['Q490', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?b WHERE { resource:Q490 property:P17 ?b . ?b rdf:type ontology:Q7275 }
Milan
action filter_type
action find
entity Milan
relation country
type state
['Milan', 'country', {'concept': 'state'}]
SELECT DISTINCT ?b WHERE { resource:Milan property:country ?b . ?b rdf:type ontology:state }
[]
state
Q172579 Q165154 Q209857
SYSTEM
Kingdom of Italy, Kingdom of Sardinia, Kingdom of Lombardy–Venetia
Q172579 Q729481 Q209857 Q213353 Q223936 Q165154
(Q490,P17,c(Q7275))
action filter_type
action find
entity Q490
relation P17
type Q7275
[ANSWERS]
['Q490', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?b WHERE { resource:Q490 property:P17 ?b . ?b rdf:type ontology:Q7275 }
Kingdom of Italy Transpadane Republic Kingdom of Lombardy–Venetia Cisalpine Republic Kingdom of Italy Kingdom of Sardinia
Kingdom of Italy Kingdom of Sardinia Kingdom of Lombardy–Venetia
action filter_type
action find
entity Milan
relation country
type state
['Milan', 'country', {'concept': 'state'}]
SELECT DISTINCT ?b WHERE { resource:Milan property:country ?b . ?b rdf:type ontology:state }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6873618
P17
Q56061
USER
Are Mirjapur, Narayani present in those states ?
(Q6873618,P17,Q172579) (Q6873618,P17,Q165154) (Q6873618,P17,Q209857)
action is_in
entity prev_answer
action find
entity Q6873618
relation P17
['Q6873618', 'P17', 'Q172579'] ['Q6873618', 'P17', 'Q165154'] ['Q6873618', 'P17', 'Q209857']
ASK WHERE { VALUES ( ?o ) { ( resource:Q172579 ) ( resource:Q729481 ) ( resource:Q209857 ) } . resource:Q6873618 property:P17 ?o }
Mirjapur, Narayani
action is_in
entity prev_answer
action find
entity Mirjapur, Narayani
relation country
['Mirjapur, Narayani', 'country', 'Kingdom of Italy'] ['Mirjapur, Narayani', 'country', 'Kingdom of Sardinia'] ['Mirjapur, Narayani', 'country', 'Kingdom of Lombardy–Venetia']
ASK WHERE { VALUES ( ?o ) { ( resource:Kingdom_of_Italy ) ( resource:Transpadane_Republic ) ( resource:Kingdom_of_Lombardy–Venetia ) } . resource:Mirjapur,_Narayani property:country ?o }
[]
administrative territorial entity
SYSTEM
NO
(Q6873618,P17,Q172579) (Q6873618,P17,Q165154) (Q6873618,P17,Q209857)
action is_in
entity prev_answer
action find
entity Q6873618
relation P17
[ANSWER]
['Q6873618', 'P17', 'Q172579'] ['Q6873618', 'P17', 'Q165154'] ['Q6873618', 'P17', 'Q209857']
ASK WHERE { VALUES ( ?o ) { ( resource:Q172579 ) ( resource:Q729481 ) ( resource:Q209857 ) } . resource:Q6873618 property:P17 ?o }
No
action is_in
entity prev_answer
action find
entity Mirjapur, Narayani
relation country
['Mirjapur, Narayani', 'country', 'Kingdom of Italy'] ['Mirjapur, Narayani', 'country', 'Kingdom of Sardinia'] ['Mirjapur, Narayani', 'country', 'Kingdom of Lombardy–Venetia']
ASK WHERE { VALUES ( ?o ) { ( resource:Kingdom_of_Italy ) ( resource:Transpadane_Republic ) ( resource:Kingdom_of_Lombardy–Venetia ) } . resource:Mirjapur,_Narayani property:country ?o }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q209857 Q959117 Q641
P36
Q56061
USER
Does Kingdom of Lombardy–Venetia contain Crofton and Venice as its capital ?
(Q209857,P36,Q959117) (Q209857,P36,Q641)
action is_in
entity Q209857
action intersection
action find_reverse
entity Q959117
relation P36
action find_reverse
entity Q641
relation P36
['Q209857', 'P36', 'Q959117'] ['Q209857', 'P36', 'Q641']
ASK WHERE { resource:Q209857 property:P36 resource:Q959117 . resource:Q209857 property:P36 resource:Q641 }
Kingdom of Lombardy–Venetia Crofton Venice
action is_in
entity Kingdom of Lombardy–Venetia
action intersection
action find_reverse
entity Crofton
relation capital
action find_reverse
entity Venice
relation capital
['Kingdom of Lombardy–Venetia', 'capital', 'Crofton'] ['Kingdom of Lombardy–Venetia', 'capital', 'Venice']
ASK WHERE { resource:Kingdom_of_Lombardy–Venetia property:capital resource:Crofton . resource:Kingdom_of_Lombardy–Venetia property:capital resource:Venice }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q209857,P36,Q959117) (Q209857,P36,Q641)
action is_in
entity Q209857
action intersection
action find_reverse
entity Q959117
relation P36
action find_reverse
entity Q641
relation P36
[ANSWER]
['Q209857', 'P36', 'Q959117'] ['Q209857', 'P36', 'Q641']
ASK WHERE { resource:Q209857 property:P36 resource:Q959117 . resource:Q209857 property:P36 resource:Q641 }
NO and YES respectively
action is_in
entity Kingdom of Lombardy–Venetia
action intersection
action find_reverse
entity Crofton
relation capital
action find_reverse
entity Venice
relation capital
['Kingdom of Lombardy–Venetia', 'capital', 'Crofton'] ['Kingdom of Lombardy–Venetia', 'capital', 'Venice']
ASK WHERE { resource:Kingdom_of_Lombardy–Venetia property:capital resource:Crofton . resource:Kingdom_of_Lombardy–Venetia property:capital resource:Venice }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q153529 Q289285 Q456902
P35
Q502895
USER
Is Filippo Maria Visconti and Gian Maria Visconti the head of state of Duchy of Milan ?
(Q153529,P35,Q289285) (Q153529,P35,Q456902)
action is_in
entity Q153529
action intersection
action find_reverse
entity Q289285
relation P35
action find_reverse
entity Q456902
relation P35
['Q153529', 'P35', 'Q289285'] ['Q153529', 'P35', 'Q456902']
ASK WHERE { resource:Q153529 property:P35 resource:Q289285 . resource:Q153529 property:P35 resource:Q456902 }
Duchy of Milan Filippo Maria Visconti Gian Maria Visconti
action is_in
entity Duchy of Milan
action intersection
action find_reverse
entity Filippo Maria Visconti
relation head of state
action find_reverse
entity Gian Maria Visconti
relation head of state
['Duchy of Milan', 'head of state', 'Filippo Maria Visconti'] ['Duchy of Milan', 'head of state', 'Gian Maria Visconti']
ASK WHERE { resource:Duchy_of_Milan property:head_of_state resource:Filippo_Maria_Visconti . resource:Duchy_of_Milan property:head_of_state resource:Gian_Maria_Visconti }
[]
common name
SYSTEM
YES
(Q153529,P35,Q289285) (Q153529,P35,Q456902)
action is_in
entity Q153529
action intersection
action find_reverse
entity Q289285
relation P35
action find_reverse
entity Q456902
relation P35
[ANSWER]
['Q153529', 'P35', 'Q289285'] ['Q153529', 'P35', 'Q456902']
ASK WHERE { resource:Q153529 property:P35 resource:Q289285 . resource:Q153529 property:P35 resource:Q456902 }
Yes
action is_in
entity Duchy of Milan
action intersection
action find_reverse
entity Filippo Maria Visconti
relation head of state
action find_reverse
entity Gian Maria Visconti
relation head of state
['Duchy of Milan', 'head of state', 'Filippo Maria Visconti'] ['Duchy of Milan', 'head of state', 'Gian Maria Visconti']
ASK WHERE { resource:Duchy_of_Milan property:head_of_state resource:Filippo_Maria_Visconti . resource:Duchy_of_Milan property:head_of_state resource:Gian_Maria_Visconti }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q7275 Q515
USER
How many cities are the capital of approximately 3 states ?
(c(Q515),P1376,c(Q7275))
action count
action approx
action find_tuple_counts
relation P1376
type Q515
type Q7275
value 3
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { FILTER ( ?x = 3 ) . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?x ) WHERE { ?r rdf:type ontology:Q515 . ?m rdf:type ontology:Q7275 . ?r property:P1376 ?m } GROUP BY ?r } }
action count
action approx
action find_tuple_counts
relation capital of
type city
type state
value 3
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { FILTER ( ?x = 3 ) . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?x ) WHERE { ?r rdf:type ontology:city . ?m rdf:type ontology:state . ?r property:capital_of ?m } GROUP BY ?r } }
[]
state city
SYSTEM
4
Q1899 Q2936 Q1530 Q16666
(c(Q515),P1376,c(Q7275))
action count
action approx
action find_tuple_counts
relation P1376
type Q515
type Q7275
value 3
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { FILTER ( ?x = 3 ) . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?x ) WHERE { ?r rdf:type ontology:Q515 . ?m rdf:type ontology:Q7275 . ?r property:P1376 ?m } GROUP BY ?r } }
Kyiv Oldenburg Baghdad Nanjing
4
action count
action approx
action find_tuple_counts
relation capital of
type city
type state
value 3
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { FILTER ( ?x = 3 ) . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?x ) WHERE { ?r rdf:type ontology:city . ?m rdf:type ontology:state . ?r property:capital_of ?m } GROUP BY ?r } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q952097
P609
Q56061 Q12280 Q83620
USER
Which administrative territories are the destination of less number of bridges and thoroughfares than Muskegon ?
(c(Q12280)|c(Q83620),P609,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q952097
relation P609
type Q12280
type Q83620
[[{'concept': 'Q12280'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:P609 resource:Q952097 . { { ?n rdf:type ontology:Q12280 } UNION { ?n rdf:type ontology:Q83620 } } } } . FILTER ( ?i < ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?f WHERE { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:Q83620 ) ( ontology:Q12280 ) } } GROUP BY ?f } }
Muskegon
action less
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Muskegon
relation terminus location
type bridge
type thoroughfare
[[{'concept': 'bridge'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:terminus_location resource:Muskegon . { { ?n rdf:type ontology:bridge } UNION { ?n rdf:type ontology:thoroughfare } } } } . FILTER ( ?i < ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?f WHERE { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:thoroughfare ) ( ontology:bridge ) } } GROUP BY ?f } }
[]
administrative territorial entity bridge thoroughfare
Q1781 Q956 Q1867
SYSTEM
Budapest, Beijing, Taipei
Q1159408 Q1866725 Q599331 Q81076 Q10084 Q3112494 Q81177 Q2218481 Q2779809 Q238510 Q780923 Q957593 Q581785 Q2207185 Q83178 Q1781774 Q1027049 Q10014 Q6772133 Q185216 Q846242 Q2223679 Q1950380 Q1309 Q832938 Q2684131 Q13415826 Q9920 Q746096 Q883862 Q12912978 Q494631 Q4507706 Q988590 Q149787 Q2372373 Q3020221 Q212686 Q1890499 Q282729 Q3475289 Q937679 Q5529922 Q49274 Q3030085 Q2124272 Q1012006 Q2060859 Q6903267 Q10025 Q3394752 Q43631 Q478036 Q6430673 Q502312 Q1812494 Q262483 Q842477 Q4733779 Q2121249 Q1615972 Q5083 Q9911 Q2376829 Q81086 Q1026976 Q51697 Q51694 Q798 Q793 Q545457 Q1615386 Q932008 Q2473978 Q2026781 Q1840 Q776965 Q3322237 Q2525207 Q5367550 Q9909 Q797512 Q60444 Q2247076 Q1726 Q6373375 Q920932 Q1023246 Q2579355 Q3026315 Q9898 Q3138 Q237692 Q1912125 Q1907250 Q26881 Q3312626 Q5039616 Q16977290 Q579722 Q5182964 Q488545 Q992371 Q2403755 Q83407 Q3030738 Q934511 Q2096849 Q2360370 Q1007168 Q2853591 Q858607 Q959585 Q1615562 Q2893665 Q740852 Q956 Q1770 Q2235855 Q425786 Q279000 Q9832 Q1781 Q2873143 Q168279 Q2318330 Q15156199 Q826048 Q1613459 Q12013510 Q244327 Q605318 Q20203420 Q1890680 Q695417 Q2856996 Q26421 Q10041 Q3330170 Q517423 Q2023889 Q1616642 Q9783 Q2157144 Q2750562 Q743632 Q2543653 Q9871 Q5327973 Q1863836 Q2511595 Q3432009 Q84125 Q736131 Q506745 Q1867 Q690062 Q634481 Q2906589 Q2805272 Q995911 Q166065 Q1007176 Q1241302 Q611722 Q1025080 Q1025089 Q1310 Q5604964 Q3205403 Q2900922 Q77056 Q1258901 Q9934 Q2225613 Q2774284 Q2496189 Q2181173 Q75967 Q2277323 Q2282115 Q1210428 Q60705 Q2289322 Q803903 Q2281208 Q726635 Q230406 Q615732 Q3025598 Q2860067 Q985549 Q971130 Q505601 Q1916586 Q10037 Q2433994 Q743236
(c(Q12280)|c(Q83620),P609,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q952097
relation P609
type Q12280
type Q83620
[ANSWERS] are the destination of less number of bridges and thoroughfares than Muskegon
[[{'concept': 'Q12280'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:P609 resource:Q952097 . { { ?n rdf:type ontology:Q12280 } UNION { ?n rdf:type ontology:Q83620 } } } } . FILTER ( ?i < ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?f WHERE { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:Q83620 ) ( ontology:Q12280 ) } } GROUP BY ?f } }
Dandenong Groenekan Biddinghuizen Zierikzee Vlissingen Poeldijk Leersum Oosterbeek Kats Etten Wallasey Den Oever Lepelstraat Terneuzen Almere Ulvsunda Irkeshtam Kampen Marmion Grapevine Nieuw-Lekkerland Uithuizen Mount Barker Maastricht Bodegraven De Punt De Bilt Haarlem North Shields Blerick Oosterhout Sassnitz Dongen Pruszcz Gdański Hendon Kootwijk De Meern Aigio Manjimup Ouderkerk aan de Amstel Schaijk Bunnik Geestdorp Garland Wieringerwerf Maasdam Cruden Bay Nieuw-Beijerland Roosendaal Wierden Catthorpe Leiden Schoonhoven Koondoola Maasdijk Rijswijk Deadwood Oosterzele Almere Poort Stainforth Wateringen Seattle Den Helder Swifterbant Sas van Gent Sale McKinney Grand Prairie Assen Zwolle Nieuw-Vennep Sassenheim Maarssen Ede Poelkapelle Veenendaal Klaipėda Venlo Ochten Elsham, North Lincolnshire Bussum Baarle Drachten Barger-Compascuum Munich Karrinyup Eede Westrozebeke Babberich Terhole Amstelveen Trier Ewijk Klaaswaal Serooskerke Helsingør Middenmeer Carine Alkmaar Ossendrecht Crawley Spijkenisse Bruinisse Terschuur Mons Zuidschermer Papendrecht Stellendam Longtown IJsselmuiden Aberford Strijen Streefkerk Kesteren Beek, Montferland Tessenderlo Beijing Tallinn Aarlanderveen 's-Gravenzande South Shields Eindhoven Budapest Hoek Zbraslav Waverveen Alphen aan den Rijn Waddinxveen Naaldwijk Vught Gorinchem Joondalup Heumen Bad Nieuweschans Bremerton Neeritter Dordrecht Soest Velsen-Zuid Den Dolder Eijsden Thurcroft Roermond Almere Haven Aarsele Nieuw-Amsterdam, Drenthe Den Hoorn, South Holland Tilburg East Butterwick Kamerik Almere Stad Rijkevoort Gouda Alblasserdam Rijswijk Taipei Rønne Gedser Blijham Ens Hoofddorp Lelystad Glanerbrug Dongara Westerland, Netherlands Soesterberg Nieuw- en Sint Joosland Arnhem Greenwood Edgemont Nieuwe Pekela Edam Driebergen-Rijsenburg Hilversum Nieuwdorp Meerkerk Oude-Tonge Bellingwolde Schoondijke Siebengewald Gretna Didam Emmeloord Van Ewijcksluis Bainbridge Island Dinteloord Beek, Ubbergen Zurich, Friesland Breukelen Wedde Cothen Sitia Nieuwe Niedorp Wassenaar Elsloo, Limburg Eemnes Putte, Pays-Bas Diest
Budapest, Beijing and Taipei are the destination of less number of bridges and thoroughfares than Muskegon
Budapest Beijing Taipei
action less
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Muskegon
relation terminus location
type bridge
type thoroughfare
[[{'concept': 'bridge'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:terminus_location resource:Muskegon . { { ?n rdf:type ontology:bridge } UNION { ?n rdf:type ontology:thoroughfare } } } } . FILTER ( ?i < ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?f WHERE { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:thoroughfare ) ( ontology:bridge ) } } GROUP BY ?f } }
[]