Simple Question (Direct)
Simple Question
Q510497
P39
Q12737077
USER
What was the position held by Andries Cornelis Dirk de Graeff ?
(Q510497,P39,c(Q12737077))
action filter_type
action find
entity Q510497
relation P39
type Q12737077
['Q510497', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q510497 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
Andries Cornelis Dirk de Graeff
action filter_type
action find
entity Andries Cornelis Dirk de Graeff
relation position held
type occupation
['Andries Cornelis Dirk de Graeff', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Andries_Cornelis_Dirk_de_Graeff property:position_held ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q20007045
SYSTEM
Minister of Foreign Affairs
Q20007045
(Q510497,P39,c(Q12737077))
action filter_type
action find
entity Q510497
relation P39
type Q12737077
The position held by Andries Cornelis Dirk de Graeff was the [ANSWER]
['Q510497', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q510497 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
Minister of Foreign Affairs
The position held by Andries Cornelis Dirk de Graeff was the Minister of Foreign Affairs
Minister of Foreign Affairs
action filter_type
action find
entity Andries Cornelis Dirk de Graeff
relation position held
type occupation
['Andries Cornelis Dirk de Graeff', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Andries_Cornelis_Dirk_de_Graeff property:position_held ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q510497
P20
Q56061
USER
Where did that person die ?
(Q20007045,P20,c(Q56061))
action filter_type
action find
entity Q510497
relation P20
type Q56061
['Q20007045', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q510497 property:P20 ?o . ?o rdf:type ontology:Q56061 }
Andries Cornelis Dirk de Graeff
action filter_type
action find
entity Andries Cornelis Dirk de Graeff
relation place of death
type administrative territorial entity
['Minister of Foreign Affairs', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Andries_Cornelis_Dirk_de_Graeff property:place_of_death ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q36600
SYSTEM
The Hague
Q36600
(Q20007045,P20,c(Q56061))
action filter_type
action find
entity Q510497
relation P20
type Q56061
That person died in [ANSWER]
['Q20007045', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q510497 property:P20 ?o . ?o rdf:type ontology:Q56061 }
The Hague
That person died in The Hague
The Hague
action filter_type
action find
entity Andries Cornelis Dirk de Graeff
relation place of death
type administrative territorial entity
['Minister of Foreign Affairs', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Andries_Cornelis_Dirk_de_Graeff property:place_of_death ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q36600 Q16637921
P20
Q502895
USER
Does Tarsicio Aguado have that administrative territory as the location of death ?
(Q16637921,P20,Q36600)
action is_in
entity Q16637921
action find
entity Q36600
relation P20
['Q16637921', 'P20', 'Q36600']
ASK WHERE { resource:Q36600 property:P20 resource:Q16637921 }
The Hague Tarsicio Aguado
action is_in
entity Tarsicio Aguado
action find
entity The Hague
relation place of death
['Tarsicio Aguado', 'place of death', 'The Hague']
ASK WHERE { resource:The_Hague property:place_of_death resource:Tarsicio_Aguado }
[]
common name
SYSTEM
NO
(Q16637921,P20,Q36600)
action is_in
entity Q16637921
action find
entity Q36600
relation P20
[ANSWER]
['Q16637921', 'P20', 'Q36600']
ASK WHERE { resource:Q36600 property:P20 resource:Q16637921 }
No
action is_in
entity Tarsicio Aguado
action find
entity The Hague
relation place of death
['Tarsicio Aguado', 'place of death', 'The Hague']
ASK WHERE { resource:The_Hague property:place_of_death resource:Tarsicio_Aguado }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36600
P915
Q838948
USER
Which work of art was filmed at that administrative territory ?
action filter_type
action find_reverse
entity Q36600
relation P915
type Q838948
SELECT DISTINCT ?c WHERE { ?c property:P915 resource:Q36600 . ?c rdf:type ontology:Q838948 }
The Hague
action filter_type
action find_reverse
entity The Hague
relation filming location
type work of art
SELECT DISTINCT ?c WHERE { ?c property:filming_location resource:The_Hague . ?c rdf:type ontology:work_of_art }
[]
work of art
Q22986649
SYSTEM
Riphagen
Q22986649
action filter_type
action find_reverse
entity Q36600
relation P915
type Q838948
[ANSWER] was filmed at that administrative territory
SELECT DISTINCT ?c WHERE { ?c property:P915 resource:Q36600 . ?c rdf:type ontology:Q838948 }
Riphagen
Riphagen was filmed at that administrative territory
Riphagen
action filter_type
action find_reverse
entity The Hague
relation filming location
type work of art
SELECT DISTINCT ?c WHERE { ?c property:filming_location resource:The_Hague . ?c rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P915
Q56061
USER
How many administrative territories were that work of art filmed ?
(Q22986649,P915,c(Q56061))
action count
action filter_type
action find
entity Q22986649
relation P915
type Q56061
['Q22986649', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q22986649 property:P915 ?q . ?q rdf:type ontology:Q56061 }
action count
action filter_type
action find
entity Riphagen
relation filming location
type administrative territorial entity
['Riphagen', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Riphagen property:filming_location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
5
Q727 Q36600 Q992 Q803 Q1019522
(Q22986649,P915,c(Q56061))
action count
action filter_type
action find
entity Q22986649
relation P915
type Q56061
[ANSWER]
['Q22986649', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q22986649 property:P915 ?q . ?q rdf:type ontology:Q56061 }
Amsterdam The Hague Amersfoort Utrecht Tegelen
5
action count
action filter_type
action find
entity Riphagen
relation filming location
type administrative territorial entity
['Riphagen', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Riphagen property:filming_location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36600 Q17422
P17
Q1048835
USER
How many political territories are The Hague or same-sex marriage situated in ?
(Q36600,P17,c(Q1048835)) (Q17422,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q36600
relation P17
type Q1048835
action filter_type
action find
entity Q17422
relation P17
type Q1048835
['Q36600', 'P17', {'concept': 'Q1048835'}] ['Q17422', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { resource:Q17422 property:P17 ?e . ?e rdf:type ontology:Q1048835 } UNION { resource:Q36600 property:P17 ?e . ?e rdf:type ontology:Q1048835 } }
The Hague same-sex marriage
action count
action union
action filter_type
action find
entity The Hague
relation country
type political territorial entity
action filter_type
action find
entity same-sex marriage
relation country
type political territorial entity
['The Hague', 'country', {'concept': 'political territorial entity'}] ['same-sex marriage', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { resource:same-sex_marriage property:country ?e . ?e rdf:type ontology:political_territorial_entity } UNION { resource:The_Hague property:country ?e . ?e rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
SYSTEM
3
Q16 Q664 Q35
(Q36600,P17,c(Q1048835)) (Q17422,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q36600
relation P17
type Q1048835
action filter_type
action find
entity Q17422
relation P17
type Q1048835
[ANSWER]
['Q36600', 'P17', {'concept': 'Q1048835'}] ['Q17422', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { resource:Q17422 property:P17 ?e . ?e rdf:type ontology:Q1048835 } UNION { resource:Q36600 property:P17 ?e . ?e rdf:type ontology:Q1048835 } }
Canada New Zealand Denmark
3
action count
action union
action filter_type
action find
entity The Hague
relation country
type political territorial entity
action filter_type
action find
entity same-sex marriage
relation country
type political territorial entity
['The Hague', 'country', {'concept': 'political territorial entity'}] ['same-sex marriage', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { resource:same-sex_marriage property:country ?e . ?e rdf:type ontology:political_territorial_entity } UNION { resource:The_Hague property:country ?e . ?e rdf:type ontology:political_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q78966 Q36600
P190 P20
Q56061
USER
Which administrative territories are twin towns of The Hague or are the places of death of Berthold Viertel ?
OR((Q36600,P190,c(Q56061)), (Q78966,P20,c(Q56061)))
action filter_type
action union
action find
entity Q36600
relation P190
action find
entity Q78966
relation P20
type Q56061
{'OR': [['Q36600', 'P190', {'concept': 'Q56061'}], ['Q78966', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q36600 property:P190 ?y } UNION { resource:Q78966 property:P20 ?y } } . ?y rdf:type ontology:Q56061 }
Berthold Viertel The Hague
action filter_type
action union
action find
entity The Hague
relation sister city
action find
entity Berthold Viertel
relation place of death
type administrative territorial entity
{'OR': [['The Hague', 'sister city', {'concept': 'administrative territorial entity'}], ['Berthold Viertel', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:The_Hague property:sister_city ?y } UNION { resource:Berthold_Viertel property:place_of_death ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270 Q1741 Q5776 Q430776 Q1025801
SYSTEM
Warsaw, Vienna, Bethlehem, Nazareth, Juigalpa
Q270 Q1741 Q5776 Q430776 Q1025801
OR((Q36600,P190,c(Q56061)), (Q78966,P20,c(Q56061)))
action filter_type
action union
action find
entity Q36600
relation P190
action find
entity Q78966
relation P20
type Q56061
[ANSWERS] are twin towns of The Hague or are the places of death of Berthold Viertel
{'OR': [['Q36600', 'P190', {'concept': 'Q56061'}], ['Q78966', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q36600 property:P190 ?y } UNION { resource:Q78966 property:P20 ?y } } . ?y rdf:type ontology:Q56061 }
Warsaw Vienna Bethlehem Nazareth Juigalpa
Warsaw, Vienna, Bethlehem, Nazareth and Juigalpa are twin towns of The Hague or are the places of death of Berthold Viertel
Warsaw Vienna Bethlehem Nazareth Juigalpa
action filter_type
action union
action find
entity The Hague
relation sister city
action find
entity Berthold Viertel
relation place of death
type administrative territorial entity
{'OR': [['The Hague', 'sister city', {'concept': 'administrative territorial entity'}], ['Berthold Viertel', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:The_Hague property:sister_city ?y } UNION { resource:Berthold_Viertel property:place_of_death ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q355304 Q337567 Q56061
USER
Which administrative territories are situated close to min number of watercourses and still waterss ?
(c(Q56061),P206,c(Q355304)|c(Q337567))
action argmin
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q337567
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?u ) WHERE { { ?q property:P206 ?d . ?q rdf:type ontology:Q56061 . ?d rdf:type ontology:Q337567 } UNION { ?q property:P206 ?d . ?q rdf:type ontology:Q56061 . ?d rdf:type ontology:Q355304 } } GROUP BY ?q } } . FILTER ( ?f = ?s ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?f ) WHERE { { ?p property:P206 ?a . ?p rdf:type ontology:Q56061 . ?a rdf:type ontology:Q355304 } UNION { ?p property:P206 ?a . ?p rdf:type ontology:Q56061 . ?a rdf:type ontology:Q337567 } } GROUP BY ?p } }
action argmin
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?u ) WHERE { { ?q property:located_next_to_body_of_water ?d . ?q rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:still_waters } UNION { ?q property:located_next_to_body_of_water ?d . ?q rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:watercourse } } GROUP BY ?q } } . FILTER ( ?f = ?s ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?f ) WHERE { { ?p property:located_next_to_body_of_water ?a . ?p rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:watercourse } UNION { ?p property:located_next_to_body_of_water ?a . ?p rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:still_waters } } GROUP BY ?p } }
[]
watercourse still waters administrative territorial entity
Q2280 Q1874 Q8818
SYSTEM
Minsk, Odessa, Valencia
Q3579 Q9248 Q493544 Q957593 Q3718 Q12273 Q3818 Q4359610 Q770885 Q4083209 Q25231 Q501661 Q501744 Q1939468 Q3549178 Q1416753 Q622030 Q11974 Q548441 Q331556 Q2943426 Q17151 Q15982011 Q1636296 Q1521492 Q105342 Q38834 Q2088134 Q5350973 Q156325 Q985587 Q7673494 Q501090 Q73049 Q1113813 Q2357495 Q1650017 Q14621387 Q3929 Q328121 Q991661 Q1018010 Q47164 Q810309 Q3897 Q36433 Q2060910 Q23800 Q1020776 Q19613124 Q2921491 Q473914 Q8818 Q15981916 Q1718608 Q1335 Q208337 Q3761 Q28721 Q484799 Q14328 Q9911 Q997407 Q2467 Q3561 Q6465685 Q3021755 Q41295 Q131233 Q2482545 Q5465 Q20730670 Q12246 Q4975194 Q207998 Q3792 Q52437 Q2983392 Q463937 Q212096 Q986079 Q2280 Q49149 Q8851 Q10509 Q334 Q12994 Q5476889 Q282461 Q1454043 Q515229 Q35178 Q656709 Q2719861 Q4119405 Q846188 Q1748 Q210093 Q2677934 Q991274 Q3299785 Q849441 Q15068816 Q3947670 Q966534 Q969531 Q851034 Q3595479 Q14875773 Q3398922 Q614919 Q1000107 Q1442470 Q21060 Q5330523 Q14056 Q2021057 Q831527 Q200036 Q651997 Q517053 Q847085 Q105037 Q214843 Q39178 Q40921 Q2225013 Q119446 Q941967 Q2684898 Q14947347 Q301415 Q49414 Q9310 Q1052027 Q736906 Q1874 Q837211 Q586112 Q239496 Q791602 Q959 Q3932309 Q8745 Q38807 Q2745332 Q213707 Q1770 Q41699 Q491999 Q19613821 Q425786 Q6751200 Q938379 Q2191422 Q18419 Q3688 Q3306 Q647543 Q2893117 Q3780 Q7314172 Q840867 Q1732099 Q133123 Q986387 Q3825 Q19613231 Q865021 Q2590944 Q2238911 Q1330853 Q5379235 Q3733 Q1189066 Q25230 Q7230655 Q810092 Q492744 Q3854 Q4072448 Q10400 Q5926907 Q16953999 Q311809 Q15682 Q5493749 Q632489 Q2157144 Q724394 Q4347874 Q9347 Q2785515 Q2292517 Q13640603 Q2449 Q1624013 Q17483998 Q36526 Q3901 Q466046 Q2727978 Q2666506 Q1419813 Q62 Q3882 Q3889 Q1616324 Q216939 Q5813 Q767357 Q1160017 Q2928585 Q49550 Q37806 Q770518 Q79716 Q930204 Q2713838 Q10313 Q2423894 Q187251 Q9939 Q8050719 Q368275 Q2413248 Q34692 Q913649 Q8757 Q1764 Q3940 Q2236639 Q2729387 Q602314 Q176749 Q14452 Q8826 Q3820 Q36260 Q36262 Q123076 Q569080 Q18386455 Q3932 Q719379 Q54898 Q1572113 Q683125 Q230406 Q1867127 Q502398 Q2978763 Q222702 Q36600 Q3114 Q773919 Q743521 Q1807728 Q11901258 Q2084446 Q446232 Q41547 Q7823825 Q1552720 Q505601 Q14205508 Q670057 Q991400 Q1758944
(c(Q56061),P206,c(Q355304)|c(Q337567))
action argmin
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q337567
[ANSWERS] are situated close to min number of watercourses and still waterss
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?u ) WHERE { { ?q property:P206 ?d . ?q rdf:type ontology:Q56061 . ?d rdf:type ontology:Q337567 } UNION { ?q property:P206 ?d . ?q rdf:type ontology:Q56061 . ?d rdf:type ontology:Q355304 } } GROUP BY ?q } } . FILTER ( ?f = ?s ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?f ) WHERE { { ?p property:P206 ?a . ?p rdf:type ontology:Q56061 . ?a rdf:type ontology:Q355304 } UNION { ?p property:P206 ?a . ?p rdf:type ontology:Q56061 . ?a rdf:type ontology:Q337567 } } GROUP BY ?p } }
Tripoli Baku Makkum Den Oever Dakar Gijón Malabo El Pescadero Bergen aan Zee Seymour Arm Svalbard Schleswig Alert Paravur Onari Sitra Palos de la Frontera Las Palmas de Gran Canaria Portugalete Bosaso Cayo Santa María Thessaloniki El Teso Hulhumalé Ghazaouet Bolshoy Kamen Nuku'alofa San José del Cabo El Centenario Juan Fernández Islands Lee-on-the-Solent Taboiaki Castro Urdiales Hindeloopen Come By Chance, Newfoundland and Labrador Paesens Sidi Abdelaziz Anna Port Louis Greater Tokyo Area Callantsoog Sidi Barrani Santa Monica Oberwurmbach Luanda Porto Fuvahmulah Valletta Cabo San Lucas Alekseyevka Katwijk aan Zee Ibiza Town Valencia El Sargento Speising Montevideo Koltur Accra Beeston Regis Marbella Santa Cruz de Tenerife Den Helder Bubaque Nassau Algiers La Ventana Dellys Basseterre South Tarawa Tortuguero Cape Town Glen Cove Huelva Brookville, Nova Scotia Fethiye Lomé Murano Colliers Saint Thomas Kastelorizo Castro Marim Municipality Minsk Nantucket Málaga Elche Singapore Bruges Fox River, Nova Scotia IJmuiden Paesens-Moddergat Ngerulmud Kuwait City Nukunonu Oost-Vlieland Nabih Saleh Wervershoof Copenhagen Motril Puttershoek Kalamos Halat Nuaim Saint John Norris Arm San Mauro Mare Elleholm Monster San Leandro Andrott Spencer's Island Y Felinheli Atokos Kijkduin Santoña Ouddorp Eastern Tickle Jan Mayen Hindersön Djurgården Volos Alcobaça, Portugal De Koog Heinenoord Callao Tipaza Port of Spain Honiara Thénia De Cocksdorp Peniche Ter Heijde Beetz Marken Ramsberg am Brombachsee Dili Cayo Largo del Sur Almonte Odessa Scheveningen Amini Sheringham Awala-Yalimapo Vladivostok Nieuw-Haamstede Vigo Suva Villa Las Estrellas Grímsey Tallinn Castries Andijk Bichura 's-Gravenzande Manoka Samarai Vingt Cinq Brooklyn Nouakchott Panama City Arrecife Beit Ummar Freetown Reposaari Rudnaya Pristan Twillingate Patras Cárdenas Libreville Antonovka Birchington-on-Sea Reimerswaal Kumta Vilsandi Ennore Conakry Point Cires Guernsey Port Greville Unterwurmbach Mijas Bujumbura Aurovka Almería Hubbards, Nova Scotia Daloloia Group Sidi Daoud Cádiz Fraserville, Nova Scotia Niulakita Almere Haven Poros Emäsalo Malé West-Terschelling Skikda Banevurovo Mogadishu Yampupata Ettling Port Moresby Moroni Salé Karwar Panaeati Island Roatán San Francisco Manama Maputo Egmond aan Zee Essaouira Canary Islands Caravela Perim Burnt Islands, Newfoundland and Labrador Maó-Mahón Port Vila Boumerdès Whittier Wells-next-the-Sea Vaghena Island Donostia/San Sebastián Funafala Vestmannaeyjar Huizen Ydrefors Spetses Cayo Romano Kingston Wijk aan Zee A Coruña Reykjavík Victoria Oosterdijk, Enkhuizen Huisduinen Ruo Villingili Easter Island Palma Beirut Apia St. John's Palmyra Atoll Koipsi Canoe Island São Tomé Sachs Harbour San Cristóbal de La Laguna Útila Ustronie Morskie Zurich, Friesland Lobsing Oranje, Drenthe Clearwater Beach Tarifa The Hague Canberra Aunu'u Scarborough Samhah Vihiluoto Arzew Petten St. George's Too Good Arm Guanaja Wassenaar Barra de Potosí Birgitz Puerto Barrios Rottumeroog
Minsk, Odessa and Valencia are situated close to min number of watercourses and still waterss
Minsk Odessa Valencia
action argmin
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?u ) WHERE { { ?q property:located_next_to_body_of_water ?d . ?q rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:still_waters } UNION { ?q property:located_next_to_body_of_water ?d . ?q rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:watercourse } } GROUP BY ?q } } . FILTER ( ?f = ?s ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?f ) WHERE { { ?p property:located_next_to_body_of_water ?a . ?p rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:watercourse } UNION { ?p property:located_next_to_body_of_water ?a . ?p rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:still_waters } } GROUP BY ?p } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36600
P138
Q55488
USER
Which railway station comes from The Hague ?
(c(Q55488),P138,Q36600)
action filter_type
action find_reverse
entity Q36600
relation P138
type Q55488
[{'concept': 'Q55488'}, 'P138', 'Q36600']
SELECT DISTINCT ?j WHERE { ?j property:P138 resource:Q36600 . ?j rdf:type ontology:Q55488 }
The Hague
action filter_type
action find_reverse
entity The Hague
relation named after
type railway station
[{'concept': 'railway station'}, 'named after', 'The Hague']
SELECT DISTINCT ?j WHERE { ?j property:named_after resource:The_Hague . ?j rdf:type ontology:railway_station }
[]
railway station
Q200704
SYSTEM
Den Haag Centraal
Q200704
(c(Q55488),P138,Q36600)
action filter_type
action find_reverse
entity Q36600
relation P138
type Q55488
[ANSWER] comes from The Hague
[{'concept': 'Q55488'}, 'P138', 'Q36600']
SELECT DISTINCT ?j WHERE { ?j property:P138 resource:Q36600 . ?j rdf:type ontology:Q55488 }
Den Haag Centraal
Den Haag Centraal comes from The Hague
Den Haag Centraal
action filter_type
action find_reverse
entity The Hague
relation named after
type railway station
[{'concept': 'railway station'}, 'named after', 'The Hague']
SELECT DISTINCT ?j WHERE { ?j property:named_after resource:The_Hague . ?j rdf:type ontology:railway_station }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36600
P1383
Q56061
USER
Which administrative territories are administratively managed by The Hague ?
(Q36600,P1383,c(Q56061))
action filter_type
action find
entity Q36600
relation P1383
type Q56061
['Q36600', 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q36600 property:P1383 ?c . ?c rdf:type ontology:Q56061 }
The Hague
action filter_type
action find
entity The Hague
relation contains settlement
type administrative territorial entity
['The Hague', 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:The_Hague property:contains_settlement ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q837211 Q994533
SYSTEM
Scheveningen, Loosduinen
Q837211 Q994533
(Q36600,P1383,c(Q56061))
action filter_type
action find
entity Q36600
relation P1383
type Q56061
[ANSWERS] are administratively managed by The Hague
['Q36600', 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q36600 property:P1383 ?c . ?c rdf:type ontology:Q56061 }
Scheveningen Loosduinen
Scheveningen and Loosduinen are administratively managed by The Hague
Scheveningen Loosduinen
action filter_type
action find
entity The Hague
relation contains settlement
type administrative territorial entity
['The Hague', 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:The_Hague property:contains_settlement ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q36600
P1383
Q56061
USER
Does The Hague contain settlement those ones ?
(Q36600,P1383,Q837211) (Q36600,P1383,Q994533)
action is_in
entity prev_answer
action find
entity Q36600
relation P1383
['Q36600', 'P1383', 'Q837211'] ['Q36600', 'P1383', 'Q994533']
ASK WHERE { resource:Q36600 property:P1383 ?n . VALUES ( ?n ) { ( resource:Q837211 ) ( resource:Q994533 ) } }
The Hague
action is_in
entity prev_answer
action find
entity The Hague
relation contains settlement
['The Hague', 'contains settlement', 'Scheveningen'] ['The Hague', 'contains settlement', 'Loosduinen']
ASK WHERE { resource:The_Hague property:contains_settlement ?n . VALUES ( ?n ) { ( resource:Scheveningen ) ( resource:Loosduinen ) } }
[]
administrative territorial entity
SYSTEM
YES
(Q36600,P1383,Q837211) (Q36600,P1383,Q994533)
action is_in
entity prev_answer
action find
entity Q36600
relation P1383
[ANSWER]
['Q36600', 'P1383', 'Q837211'] ['Q36600', 'P1383', 'Q994533']
ASK WHERE { resource:Q36600 property:P1383 ?n . VALUES ( ?n ) { ( resource:Q837211 ) ( resource:Q994533 ) } }
Yes
action is_in
entity prev_answer
action find
entity The Hague
relation contains settlement
['The Hague', 'contains settlement', 'Scheveningen'] ['The Hague', 'contains settlement', 'Loosduinen']
ASK WHERE { resource:The_Hague property:contains_settlement ?n . VALUES ( ?n ) { ( resource:Scheveningen ) ( resource:Loosduinen ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q1267889 Q15324 Q56061
USER
Which administrative territories are located nearby max number of waterways or bodies of water ?
(c(Q56061),P206,c(Q1267889)|c(Q15324))
action argmax
action union
action find_tuple_counts
relation P206
type Q56061
type Q1267889
action find_tuple_counts
relation P206
type Q56061
type Q15324
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?u ) { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?y ) WHERE { VALUES ( ?a ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } . ?r rdf:type ?a } GROUP BY ?c } } . FILTER ( ?s = ?u ) . { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } } GROUP BY ?b } }
action argmax
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?u ) { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?y ) WHERE { VALUES ( ?a ) { ( ontology:waterway ) ( ontology:body_of_water ) } . ?r rdf:type ?a } GROUP BY ?c } } . FILTER ( ?s = ?u ) . { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:waterway ) ( ontology:body_of_water ) } } GROUP BY ?b } }
[]
waterway body of water administrative territorial entity
Q60 Q18419
SYSTEM
New York City, Brooklyn
Q60 Q18419
(c(Q56061),P206,c(Q1267889)|c(Q15324))
action argmax
action union
action find_tuple_counts
relation P206
type Q56061
type Q1267889
action find_tuple_counts
relation P206
type Q56061
type Q15324
[ANSWERS] are located nearby max number of waterways or bodies of water
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?u ) { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?y ) WHERE { VALUES ( ?a ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } . ?r rdf:type ?a } GROUP BY ?c } } . FILTER ( ?s = ?u ) . { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } } GROUP BY ?b } }
New York City Brooklyn
New York City and Brooklyn are located nearby max number of waterways or bodies of water
New York City Brooklyn
action argmax
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?u ) { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?y ) WHERE { VALUES ( ?a ) { ( ontology:waterway ) ( ontology:body_of_water ) } . ?r rdf:type ?a } GROUP BY ?c } } . FILTER ( ?s = ?u ) . { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:waterway ) ( ontology:body_of_water ) } } GROUP BY ?b } }
[]