Simple Question (Direct)
Simple Question
Q5789629
P937
Q56061
USER
Which administrative territory is the work location of Sigfrid Hansson ?
(Q5789629,P937,c(Q56061))
action filter_type
action find
entity Q5789629
relation P937
type Q56061
['Q5789629', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q5789629 property:P937 ?b }
Sigfrid Hansson
action filter_type
action find
entity Sigfrid Hansson
relation work location
type administrative territorial entity
['Sigfrid Hansson', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Sigfrid_Hansson property:work_location ?b }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q5789629,P937,c(Q56061))
action filter_type
action find
entity Q5789629
relation P937
type Q56061
[ANSWER] is the work location of Sigfrid Hansson
['Q5789629', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q5789629 property:P937 ?b }
Stockholm
Stockholm is the work location of Sigfrid Hansson
Stockholm
action filter_type
action find
entity Sigfrid Hansson
relation work location
type administrative territorial entity
['Sigfrid Hansson', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Sigfrid_Hansson property:work_location ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1754
P190
Q56061
USER
Which administrative territories are a sister city of that one ?
(c(Q56061),P190,Q1754)
action filter_type
action find
entity Q1754
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1754']
SELECT DISTINCT ?c WHERE { resource:Q1754 property:P190 ?c . ?c rdf:type ontology:Q56061 }
Stockholm
action filter_type
action find
entity Stockholm
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Stockholm']
SELECT DISTINCT ?c WHERE { resource:Stockholm property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q216 Q406 Q1489
SYSTEM
Vilnius, Istanbul, Mexico City
Q1757 Q226 Q216 Q1748 Q585 Q3711 Q13670 Q406 Q1489 Q1770 Q23564 Q51103 Q1764 Q10704
(c(Q56061),P190,Q1754)
action filter_type
action find
entity Q1754
relation P190
type Q56061
[ANSWERS] are a sister city of that one
[{'concept': 'Q56061'}, 'P190', 'Q1754']
SELECT DISTINCT ?c WHERE { resource:Q1754 property:P190 ?c . ?c rdf:type ontology:Q56061 }
Helsinki Nuuk Vilnius Copenhagen Oslo Belgrade Syracuse Istanbul Mexico City Tallinn Podgorica Cali Reykjavík Tórshavn
Vilnius, Istanbul and Mexico City are a sister city of that one
Vilnius Istanbul Mexico City
action filter_type
action find
entity Stockholm
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Stockholm']
SELECT DISTINCT ?c WHERE { resource:Stockholm property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1754
P189
Q79529
USER
What was found at Stockholm ?
(c(Q79529),P189,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P189
type Q79529
[{'concept': 'Q79529'}, 'P189', 'Q1754']
SELECT DISTINCT ?l WHERE { ?l property:P189 resource:Q1754 . ?l rdf:type ontology:Q79529 }
Stockholm
action filter_type
action find_reverse
entity Stockholm
relation location of discovery
type chemical substance
[{'concept': 'chemical substance'}, 'location of discovery', 'Stockholm']
SELECT DISTINCT ?l WHERE { ?l property:location_of_discovery resource:Stockholm . ?l rdf:type ontology:chemical_substance }
[]
chemical substance
Q1838
SYSTEM
terbium
Q1838
(c(Q79529),P189,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P189
type Q79529
[ANSWER] was found at Stockholm
[{'concept': 'Q79529'}, 'P189', 'Q1754']
SELECT DISTINCT ?l WHERE { ?l property:P189 resource:Q1754 . ?l rdf:type ontology:Q79529 }
terbium
Terbium was found at Stockholm
terbium
action filter_type
action find_reverse
entity Stockholm
relation location of discovery
type chemical substance
[{'concept': 'chemical substance'}, 'location of discovery', 'Stockholm']
SELECT DISTINCT ?l WHERE { ?l property:location_of_discovery resource:Stockholm . ?l rdf:type ontology:chemical_substance }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1838
P138
Q811979
USER
Which architectural structure is the origin of that chemical substance ?
(Q1838,P138,c(Q811979))
action filter_type
action find
entity Q1838
relation P138
type Q811979
['Q1838', 'P138', {'concept': 'Q811979'}]
SELECT DISTINCT ?z WHERE { resource:Q1838 property:P138 ?z . ?z rdf:type ontology:Q811979 }
terbium
action filter_type
action find
entity terbium
relation named after
type architectural structure
['terbium', 'named after', {'concept': 'architectural structure'}]
SELECT DISTINCT ?z WHERE { resource:terbium property:named_after ?z . ?z rdf:type ontology:architectural_structure }
[]
architectural structure
Q631733
SYSTEM
Ytterby mine
Q631733
(Q1838,P138,c(Q811979))
action filter_type
action find
entity Q1838
relation P138
type Q811979
[ANSWER] is the origin of that chemical substance
['Q1838', 'P138', {'concept': 'Q811979'}]
SELECT DISTINCT ?z WHERE { resource:Q1838 property:P138 ?z . ?z rdf:type ontology:Q811979 }
Ytterby mine
Ytterby mine is the origin of that chemical substance
Ytterby mine
action filter_type
action find
entity terbium
relation named after
type architectural structure
['terbium', 'named after', {'concept': 'architectural structure'}]
SELECT DISTINCT ?z WHERE { resource:terbium property:named_after ?z . ?z rdf:type ontology:architectural_structure }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P609
Q56061 Q83620 Q34442
USER
Which administrative territories are the destination of min number of thoroughfares or roads ?
(c(Q83620)|c(Q34442),P609,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P609
type Q56061
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?e ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?o rdf:type ?e } GROUP BY ?d } . FILTER ( ?z = ?w ) . { SELECT DISTINCT ( MIN ( ?x ) AS ?w ) { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?x ) WHERE { { ?h property:P609 ?c . ?c rdf:type ontology:Q56061 . ?h rdf:type ontology:Q83620 } UNION { ?h property:P609 ?c . ?c rdf:type ontology:Q56061 . ?h rdf:type ontology:Q34442 } } GROUP BY ?c } } }
action argmin
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?e ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?o rdf:type ?e } GROUP BY ?d } . FILTER ( ?z = ?w ) . { SELECT DISTINCT ( MIN ( ?x ) AS ?w ) { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?x ) WHERE { { ?h property:terminus_location ?c . ?c rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:thoroughfare } UNION { ?h property:terminus_location ?c . ?c rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:road } } GROUP BY ?c } } }
[]
administrative territorial entity thoroughfare road
Q1770 Q1726 Q5083
SYSTEM
Tallinn, Munich, Seattle
Q1781774 Q6772133 Q1026676 Q1784987 Q1950380 Q746096 Q494631 Q988590 Q4357016 Q3315792 Q4357626 Q904462 Q212686 Q1890499 Q1012006 Q6430673 Q1042366 Q10661123 Q262483 Q842477 Q5083 Q1043381 Q6383632 Q298489 Q2026781 Q776965 Q797512 Q1726 Q6373375 Q1023246 Q3138 Q26881 Q5039616 Q1589316 Q5182964 Q2523431 Q488545 Q740149 Q831527 Q780785 Q83407 Q3355046 Q4412622 Q740852 Q15054735 Q579854 Q1770 Q279000 Q605318 Q695417 Q3646335 Q201002 Q26345 Q3261960 Q2157144 Q2750562 Q743632 Q1043368 Q690062 Q634481 Q2756084 Q1782644 Q1241302 Q5604964 Q3205403 Q448970 Q1781568 Q803903 Q4411341 Q1781556 Q1782100 Q4411580 Q743236 Q3354991
(c(Q83620)|c(Q34442),P609,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P609
type Q56061
type Q34442
[ANSWERS] are the destination of min number of thoroughfares or roads
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?e ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?o rdf:type ?e } GROUP BY ?d } . FILTER ( ?z = ?w ) . { SELECT DISTINCT ( MIN ( ?x ) AS ?w ) { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?x ) WHERE { { ?h property:P609 ?c . ?c rdf:type ontology:Q56061 . ?h rdf:type ontology:Q83620 } UNION { ?h property:P609 ?c . ?c rdf:type ontology:Q56061 . ?h rdf:type ontology:Q34442 } } GROUP BY ?c } } }
Ulvsunda Marmion Norrmalm Aspudden Mount Barker North Shields Sassnitz Pruszcz Gdański Ulvsunda industriområde Sätra Farstanäset Riddarholmen Aigio Manjimup Cruden Bay Koondoola Lilla Essingen Sandarna Deadwood Oosterzele Seattle Reimersholme Huvudsta Östermalm Poelkapelle Klaipėda Baarle Munich Karrinyup Westrozebeke Trier Helsingør Carine Traneberg Crawley Stadshagen Spijkenisse Södermalm Djurgården Långholmen Mons Marieberg Hjorthagen Tessenderlo Kungsholmen Gamla stan Tallinn South Shields Joondalup Bremerton Vasastan Liljeholmen Kalmar Gröndal Almere Haven Aarsele Nieuw-Amsterdam, Drenthe Stora Essingen Rønne Gedser Johanneshov Årsta Dongara Greenwood Edgemont Alvik Nockeby Bainbridge Island Södra Hammarbyhamnen Gärdet Farsta strand Fredhäll Diest Kristineberg
Tallinn, Munich and Seattle are the destination of min number of thoroughfares or roads
Tallinn Munich Seattle
action argmin
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?e ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?o rdf:type ?e } GROUP BY ?d } . FILTER ( ?z = ?w ) . { SELECT DISTINCT ( MIN ( ?x ) AS ?w ) { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?x ) WHERE { { ?h property:terminus_location ?c . ?c rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:thoroughfare } UNION { ?h property:terminus_location ?c . ?c rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:road } } GROUP BY ?c } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11868724 Q631733
P27 P17
Q15617994
USER
Which administrative territories are Ytterby mine situated in or do Kaarle Mänty belong to ?
OR((Q631733,P17,c(Q15617994)), (Q11868724,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q631733
relation P17
action find
entity Q11868724
relation P27
type Q15617994
{'OR': [['Q631733', 'P17', {'concept': 'Q15617994'}], ['Q11868724', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q631733 property:P17 ?u } UNION { resource:Q11868724 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Kaarle Mänty Ytterby mine
action filter_type
action union
action find
entity Ytterby mine
relation country
action find
entity Kaarle Mänty
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ytterby mine', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kaarle Mänty', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Ytterby_mine property:country ?u } UNION { resource:Kaarle_Mänty property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q34
SYSTEM
Finland, Sweden
Q33 Q34
OR((Q631733,P17,c(Q15617994)), (Q11868724,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q631733
relation P17
action find
entity Q11868724
relation P27
type Q15617994
Ytterby mine are situated belong to [ANSWERS]
{'OR': [['Q631733', 'P17', {'concept': 'Q15617994'}], ['Q11868724', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q631733 property:P17 ?u } UNION { resource:Q11868724 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Finland Sweden
Ytterby mine are situated belong to Finland and Sweden
Finland Sweden
action filter_type
action union
action find
entity Ytterby mine
relation country
action find
entity Kaarle Mänty
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ytterby mine', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kaarle Mänty', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Ytterby_mine property:country ?u } UNION { resource:Kaarle_Mänty property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7690966
P27
Q502895
USER
Are Te Retimana Te Korou a native of those administrative territories ?
(Q7690966,P27,Q33) (Q7690966,P27,Q34)
action is_in
entity prev_answer
action find
entity Q7690966
relation P27
['Q7690966', 'P27', 'Q33'] ['Q7690966', 'P27', 'Q34']
ASK WHERE { resource:Q7690966 property:P27 ?f . VALUES ( ?f ) { ( resource:Q33 ) ( resource:Q34 ) } }
Te Retimana Te Korou
action is_in
entity prev_answer
action find
entity Te Retimana Te Korou
relation country of citizenship
['Te Retimana Te Korou', 'country of citizenship', 'Finland'] ['Te Retimana Te Korou', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Te_Retimana_Te_Korou property:country_of_citizenship ?f . VALUES ( ?f ) { ( resource:Finland ) ( resource:Sweden ) } }
[]
common name
SYSTEM
NO
(Q7690966,P27,Q33) (Q7690966,P27,Q34)
action is_in
entity prev_answer
action find
entity Q7690966
relation P27
[ANSWER]
['Q7690966', 'P27', 'Q33'] ['Q7690966', 'P27', 'Q34']
ASK WHERE { resource:Q7690966 property:P27 ?f . VALUES ( ?f ) { ( resource:Q33 ) ( resource:Q34 ) } }
No
action is_in
entity prev_answer
action find
entity Te Retimana Te Korou
relation country of citizenship
['Te Retimana Te Korou', 'country of citizenship', 'Finland'] ['Te Retimana Te Korou', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Te_Retimana_Te_Korou property:country_of_citizenship ?f . VALUES ( ?f ) { ( resource:Finland ) ( resource:Sweden ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P559
Q56061 Q83620 Q34442
USER
Which administrative territories are the endpoints for min number of thoroughfares and roads ?
(c(Q83620)|c(Q34442),P559,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?g ) { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?w ) WHERE { { ?h rdf:type ontology:Q56061 . ?k rdf:type ontology:Q83620 . ?k property:P559 ?h } UNION { ?k property:P559 ?h . ?k rdf:type ontology:Q34442 . ?h rdf:type ontology:Q56061 } } GROUP BY ?h } } . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?v ) WHERE { { ?x property:P559 ?s . ?s rdf:type ontology:Q56061 . ?x rdf:type ontology:Q83620 } UNION { ?x property:P559 ?s . ?x rdf:type ontology:Q34442 . ?s rdf:type ontology:Q56061 } } GROUP BY ?s } . FILTER ( ?v = ?g ) }
action argmin
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?g ) { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?w ) WHERE { { ?h rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:thoroughfare . ?k property:terminus ?h } UNION { ?k property:terminus ?h . ?k rdf:type ontology:road . ?h rdf:type ontology:administrative_territorial_entity } } GROUP BY ?h } } . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?v ) WHERE { { ?x property:terminus ?s . ?s rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:thoroughfare } UNION { ?x property:terminus ?s . ?x rdf:type ontology:road . ?s rdf:type ontology:administrative_territorial_entity } } GROUP BY ?s } . FILTER ( ?v = ?g ) }
[]
administrative territorial entity thoroughfare road
Q65 Q727 Q33959
SYSTEM
Los Angeles, Amsterdam, Nice
Q3051477 Q1020217 Q3112707 Q837211 Q69639 Q375314 Q12439 Q2814 Q541055 Q82490 Q4825403 Q172157 Q575557 Q985313 Q687333 Q932159 Q3469728 Q796625 Q185453 Q588804 Q130191 Q5902931 Q723372 Q167155 Q2272 Q7811572 Q7651719 Q134620 Q992420 Q556989 Q1011611 Q727 Q2065223 Q42159 Q7986745 Q1009428 Q1011221 Q7050868 Q24826 Q6509 Q28327 Q5477618 Q4356873 Q33959 Q11839080 Q586 Q585 Q1017331 Q35433 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q49218 Q100 Q2734845 Q6820370 Q1020951 Q1616042 Q643944 Q257034 Q1571025 Q756103 Q25330 Q856860 Q517381 Q190847 Q1248150 Q2073801 Q1781385 Q1759693 Q2300663 Q2703030 Q794802 Q646784 Q79499 Q6275457 Q375905 Q10561690 Q643160 Q1735 Q17872 Q129610 Q766594 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q2290 Q12191 Q237253 Q485186 Q634172 Q522362 Q1729 Q790938 Q865872 Q65
(c(Q83620)|c(Q34442),P559,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
[ANSWERS] are the endpoints for min number of thoroughfares and roads
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?g ) { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?w ) WHERE { { ?h rdf:type ontology:Q56061 . ?k rdf:type ontology:Q83620 . ?k property:P559 ?h } UNION { ?k property:P559 ?h . ?k rdf:type ontology:Q34442 . ?h rdf:type ontology:Q56061 } } GROUP BY ?h } } . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?v ) WHERE { { ?x property:P559 ?s . ?s rdf:type ontology:Q56061 . ?x rdf:type ontology:Q83620 } UNION { ?x property:P559 ?s . ?x rdf:type ontology:Q34442 . ?s rdf:type ontology:Q56061 } } GROUP BY ?s } . FILTER ( ?v = ?g ) }
Ellewoutsdijk Minehead Sedbury Scheveningen Göschenen Folkestone Detroit Halle (Saale) Oijen Lyme Regis Austrepollen Winchester Grand Tower Ingleton Middleton-by-Wirksworth Hart Salford Quays Edale Multan Badrinath Norwich Horda, Norway Narva-Jõesuu Kalamazoo Skien Tobermory, Ontario Svartnes Jyväskylä Fjærland Ankeny Portpatrick Amsterdam Port Grimaud Hanam West Vale Drymen Kincardine Nordrepollen Liverpool Burgas Örnsköldsvik Frafjord Mariehäll Nice Akdere, Silifke Bonn Oslo Westport, County Mayo Saint-Rhémy-en-Bosses Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Rochester Boston Henley-in-Arden Merritton, Ontario Ilkley Hessle Asaluyeh Kemble Mullan Lewes Trenton Hammond Dillenburg Alexandroupoli Wallsend Helmsley Björkhagen South Boston Gaylord Kilsby Otira Moffat Helena Jong, Norway Deerfield Lilla Alby Farnham Innsbruck Alice Springs Galway Bewdley Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Porsgrunn Nantes Great Yarmouth Key West Banihal Bad Säckingen Erfurt Aviemore Birstall Los Angeles
Los Angeles, Amsterdam and Nice are the endpoints for min number of thoroughfares and roads
Los Angeles Amsterdam Nice
action argmin
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?g ) { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?w ) WHERE { { ?h rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:thoroughfare . ?k property:terminus ?h } UNION { ?k property:terminus ?h . ?k rdf:type ontology:road . ?h rdf:type ontology:administrative_territorial_entity } } GROUP BY ?h } } . { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?v ) WHERE { { ?x property:terminus ?s . ?s rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:thoroughfare } UNION { ?x property:terminus ?s . ?x rdf:type ontology:road . ?s rdf:type ontology:administrative_territorial_entity } } GROUP BY ?s } . FILTER ( ?v = ?g ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q65 Q727 Q33959
P6
Q502895
USER
Which people have those administrative territories as their heads of government ?
(Q65,P6,c(Q502895)) (Q727,P6,c(Q502895)) (Q33959,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q65', 'P6', {'concept': 'Q502895'}] ['Q727', 'P6', {'concept': 'Q502895'}] ['Q33959', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?d ) { ( resource:Q3051477 ) ( resource:Q1020217 ) ( resource:Q3112707 ) } . ?x rdf:type ontology:Q502895 . ?d property:P6 ?x }
Los Angeles Amsterdam Nice
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Los Angeles', 'head of government', {'concept': 'common name'}] ['Amsterdam', 'head of government', {'concept': 'common name'}] ['Nice', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?d ) { ( resource:Ellewoutsdijk ) ( resource:Minehead ) ( resource:Sedbury ) } . ?x rdf:type ontology:common_name . ?d property:head_of_government ?x }
[]
common name
Q749029 Q5386557 Q1279554
SYSTEM
Christian Estrosi, Eric Garcetti, Eberhard van der Laan
Q5386557 Q1279554 Q24452013 Q749029
(Q65,P6,c(Q502895)) (Q727,P6,c(Q502895)) (Q33959,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
[ANSWERS] have those administrative territories as their heads of government
['Q65', 'P6', {'concept': 'Q502895'}] ['Q727', 'P6', {'concept': 'Q502895'}] ['Q33959', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?d ) { ( resource:Q3051477 ) ( resource:Q1020217 ) ( resource:Q3112707 ) } . ?x rdf:type ontology:Q502895 . ?d property:P6 ?x }
Eric Garcetti Eberhard van der Laan Philippe Pradal Christian Estrosi
Christian Estrosi, Eric Garcetti and Eberhard van der Laan have those administrative territories as their heads of government
Christian Estrosi Eric Garcetti Eberhard van der Laan
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Los Angeles', 'head of government', {'concept': 'common name'}] ['Amsterdam', 'head of government', {'concept': 'common name'}] ['Nice', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?d ) { ( resource:Ellewoutsdijk ) ( resource:Minehead ) ( resource:Sedbury ) } . ?x rdf:type ontology:common_name . ?d property:head_of_government ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1726
P1376
Q1048835
USER
Which political territories have Munich have their first city ?
(Q1726,P1376,c(Q1048835))
action filter_type
action find
entity Q1726
relation P1376
type Q1048835
['Q1726', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q1726 property:P1376 ?g . ?g rdf:type ontology:Q1048835 }
Munich
action filter_type
action find
entity Munich
relation capital of
type political territorial entity
['Munich', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Munich property:capital_of ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q10544 Q10562
SYSTEM
Munich (district), Upper Bavaria
Q10544 Q10562
(Q1726,P1376,c(Q1048835))
action filter_type
action find
entity Q1726
relation P1376
type Q1048835
[ANSWERS] have Munich have their first city
['Q1726', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q1726 property:P1376 ?g . ?g rdf:type ontology:Q1048835 }
Munich (district) Upper Bavaria
Munich (district) and Upper Bavaria have Munich have their first city
Munich (district) Upper Bavaria
action filter_type
action find
entity Munich
relation capital of
type political territorial entity
['Munich', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Munich property:capital_of ?g . ?g rdf:type ontology:political_territorial_entity }
[]