Simple Question (Direct)
Simple Question
Q6039297
P39
Q12737077
USER
What was the position for which Peter Pedersen was appointed ?
(Q6039297,P39,c(Q12737077))
action filter_type
action find
entity Q6039297
relation P39
type Q12737077
['Q6039297', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6039297 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
Peter Pedersen
action filter_type
action find
entity Peter Pedersen
relation position held
type occupation
['Peter Pedersen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Peter_Pedersen property:position_held ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q10655178
SYSTEM
Member of the Riksdag
Q10655178
(Q6039297,P39,c(Q12737077))
action filter_type
action find
entity Q6039297
relation P39
type Q12737077
[ANSWER]
['Q6039297', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6039297 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
Member of the Riksdag
Member of the Riksdag
Member of the Riksdag
action filter_type
action find
entity Peter Pedersen
relation position held
type occupation
['Peter Pedersen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Peter_Pedersen property:position_held ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6039297
P937
Q56061
USER
Which is the work location of Peter Pedersen ?
(Q6039297,P937,c(Q56061))
action filter_type
action find
entity Q6039297
relation P937
type Q56061
['Q6039297', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q6039297 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Peter Pedersen
action filter_type
action find
entity Peter Pedersen
relation work location
type administrative territorial entity
['Peter Pedersen', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Peter_Pedersen property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q6039297,P937,c(Q56061))
action filter_type
action find
entity Q6039297
relation P937
type Q56061
[ANSWER] is the work location of Peter Pedersen
['Q6039297', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q6039297 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Stockholm
Stockholm is the work location of Peter Pedersen
Stockholm
action filter_type
action find
entity Peter Pedersen
relation work location
type administrative territorial entity
['Peter Pedersen', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Peter_Pedersen property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1754 Q24911938 Q871557
P190
Q56061
USER
Is Stockholm twin town of Bakaniya and Tišina ?
(Q1754,P190,Q24911938) (Q1754,P190,Q871557)
action is_in
entity Q1754
action intersection
action find_reverse
entity Q24911938
relation P190
action find_reverse
entity Q871557
relation P190
['Q1754', 'P190', 'Q24911938'] ['Q1754', 'P190', 'Q871557']
ASK WHERE { resource:Q1754 property:P190 resource:Q871557 . resource:Q1754 property:P190 resource:Q24911938 }
Stockholm Bakaniya Tišina
action is_in
entity Stockholm
action intersection
action find_reverse
entity Bakaniya
relation sister city
action find_reverse
entity Tišina
relation sister city
['Stockholm', 'sister city', 'Bakaniya'] ['Stockholm', 'sister city', 'Tišina']
ASK WHERE { resource:Stockholm property:sister_city resource:Tišina . resource:Stockholm property:sister_city resource:Bakaniya }
[]
administrative territorial entity
SYSTEM
NO
(Q1754,P190,Q24911938) (Q1754,P190,Q871557)
action is_in
entity Q1754
action intersection
action find_reverse
entity Q24911938
relation P190
action find_reverse
entity Q871557
relation P190
[ANSWER]
['Q1754', 'P190', 'Q24911938'] ['Q1754', 'P190', 'Q871557']
ASK WHERE { resource:Q1754 property:P190 resource:Q871557 . resource:Q1754 property:P190 resource:Q24911938 }
No
action is_in
entity Stockholm
action intersection
action find_reverse
entity Bakaniya
relation sister city
action find_reverse
entity Tišina
relation sister city
['Stockholm', 'sister city', 'Bakaniya'] ['Stockholm', 'sister city', 'Tišina']
ASK WHERE { resource:Stockholm property:sister_city resource:Tišina . resource:Stockholm property:sister_city resource:Bakaniya }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q1445650 Q502895 Q56061
USER
Which administrative territories have adopted exactly 1 holidays or people as patron saint ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action equal
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
value 1
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?t WHERE { { ?t property:P417 ?w . ?t rdf:type ontology:Q56061 . ?w rdf:type ontology:Q502895 } UNION { ?w rdf:type ontology:Q1445650 . ?t rdf:type ontology:Q56061 . ?t property:P417 ?w } } GROUP BY ?t } . FILTER ( ?x = 1 ) }
action equal
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?t WHERE { { ?t property:patron_saint ?w . ?t rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:common_name } UNION { ?w rdf:type ontology:holiday . ?t rdf:type ontology:administrative_territorial_entity . ?t property:patron_saint ?w } } GROUP BY ?t } . FILTER ( ?x = 1 ) }
[]
holiday common name administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action equal
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
value 1
[ANSWERS] have adopted exactly 1 holidays or people as patron saint
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?t WHERE { { ?t property:P417 ?w . ?t rdf:type ontology:Q56061 . ?w rdf:type ontology:Q502895 } UNION { ?w rdf:type ontology:Q1445650 . ?t rdf:type ontology:Q56061 . ?t property:P417 ?w } } GROUP BY ?t } . FILTER ( ?x = 1 ) }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow, Madrid and Milan have adopted exactly 1 holidays or people as patron saint
Moscow Madrid Milan
action equal
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?t WHERE { { ?t property:patron_saint ?w . ?t rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:common_name } UNION { ?w rdf:type ontology:holiday . ?t rdf:type ontology:administrative_territorial_entity . ?t property:patron_saint ?w } } GROUP BY ?t } . FILTER ( ?x = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q894535
P206
Q15324 Q355304 Q56061
USER
How many administrative territories are located nearby lesser number of bodies of water and watercourses than Bosso ?
(c(Q56061),P206,c(Q15324)|c(Q355304))
action count
action less
action union
action find_tuple_counts
relation P206
type Q56061
type Q15324
action find_tuple_counts
relation P206
type Q56061
type Q355304
action count
action filter_multi_types
action find
entity Q894535
relation P206
type Q15324
type Q355304
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?x ) WHERE { VALUES ( ?h ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } . ?i rdf:type ?h } GROUP BY ?u } . FILTER ( ?x < ?s ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { ?j rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } } . resource:Q894535 property:P206 ?j } } }
Bosso
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action count
action filter_multi_types
action find
entity Bosso
relation located next to body of water
type body of water
type watercourse
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?x ) WHERE { VALUES ( ?h ) { ( ontology:body_of_water ) ( ontology:watercourse ) } . ?i rdf:type ?h } GROUP BY ?u } . FILTER ( ?x < ?s ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { ?j rdf:type ?g . VALUES ( ?g ) { ( ontology:body_of_water ) ( ontology:watercourse ) } } . resource:Bosso property:located_next_to_body_of_water ?j } } }
[]
body of water watercourse administrative territorial entity
SYSTEM
215
Q3579 Q18682792 Q2255397 Q9248 Q740149 Q493544 Q957593 Q3718 Q4359610 Q83178 Q25231 Q3549178 Q1416753 Q622030 Q11974 Q609698 Q254734 Q631517 Q1521492 Q38834 Q7977 Q2088134 Q5350973 Q156325 Q985587 Q7673494 Q73049 Q385386 Q2726062 Q625761 Q2357495 Q1650017 Q14621387 Q3929 Q328121 Q1018010 Q47164 Q810309 Q3897 Q3894 Q15320 Q36433 Q179454 Q23800 Q1020776 Q19613124 Q473914 Q206954 Q8818 Q1718608 Q208337 Q3761 Q174054 Q3483520 Q484799 Q14328 Q9918 Q11902175 Q997407 Q2467 Q3561 Q3021755 Q131233 Q2482545 Q5465 Q20730670 Q12246 Q4975194 Q2227038 Q212096 Q986079 Q2280 Q49149 Q8851 Q10509 Q334 Q5476889 Q1454043 Q515229 Q656709 Q2719861 Q846188 Q196397 Q1748 Q210093 Q1223508 Q2677934 Q1042366 Q11901984 Q966534 Q14875773 Q3398922 Q3010939 Q5330523 Q14056 Q6278969 Q1390389 Q651997 Q7507390 Q15339 Q172 Q847085 Q105037 Q214843 Q40921 Q2225013 Q119446 Q3274 Q941967 Q1807382 Q11899935 Q14947347 Q301415 Q920968 Q49414 Q736906 Q586112 Q134620 Q791602 Q654259 Q8745 Q38807 Q491999 Q19613821 Q6751200 Q2191422 Q3688 Q6397865 Q3306 Q647543 Q3780 Q1732099 Q19613231 Q3604 Q2590944 Q3733 Q1189066 Q25230 Q7230655 Q810092 Q492744 Q3854 Q11902896 Q4072448 Q10400 Q183199 Q2350941 Q311809 Q15682 Q5493749 Q674395 Q632489 Q2157144 Q9347 Q2785515 Q1043368 Q2292517 Q13640603 Q2449 Q1624013 Q17483998 Q3901 Q466046 Q1026296 Q216939 Q5813 Q767357 Q1160017 Q49550 Q37806 Q770518 Q922981 Q166065 Q2713838 Q18681979 Q304108 Q77056 Q58940 Q2423894 Q187251 Q9939 Q8050719 Q12762569 Q8757 Q15287 Q1764 Q3940 Q2236639 Q11901684 Q2124272 Q602314 Q1270505 Q65502 Q14452 Q8826 Q3820 Q36260 Q123076 Q2627415 Q719379 Q54898 Q3361880 Q230406 Q1867127 Q502398 Q570990 Q222702 Q3114 Q773919 Q2084446 Q2350685 Q7823825 Q14205508 Q670057 Q11901400
(c(Q56061),P206,c(Q15324)|c(Q355304))
action count
action less
action union
action find_tuple_counts
relation P206
type Q56061
type Q15324
action find_tuple_counts
relation P206
type Q56061
type Q355304
action count
action filter_multi_types
action find
entity Q894535
relation P206
type Q15324
type Q355304
[ANSWER]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?x ) WHERE { VALUES ( ?h ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } . ?i rdf:type ?h } GROUP BY ?u } . FILTER ( ?x < ?s ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { ?j rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } } . resource:Q894535 property:P206 ?j } } }
Tripoli Vaattojärvi Uitdam Baku Södermalm Makkum Den Oever Dakar El Pescadero Almere Svalbard Onari Sitra Palos de la Frontera Las Palmas de Gran Canaria Lorain Äkäslompolo Marivan Ghazaouet Nuku'alofa Priozersk San José del Cabo El Centenario Juan Fernández Islands Lee-on-the-Solent Taboiaki Hindeloopen Spakenburg Westmaas Bandipore Paesens Sidi Abdelaziz Anna Port Louis Greater Tokyo Area Sidi Barrani Santa Monica Oberwurmbach Luanda Kampala Syasstroy Porto Pitkyaranta Valletta Cabo San Lucas Alekseyevka Ibiza Town Kastoria Valencia Speising Koltur Accra Isola Bella Siggebohyttan Marbella Santa Cruz de Tenerife Enkhuizen Väylä Bubaque Nassau Algiers Dellys South Tarawa Tortuguero Cape Town Glen Cove Huelva Brookville, Nova Scotia Warder, Netherlands Kastelorizo Castro Marim Municipality Minsk Nantucket Málaga Elche Singapore Fox River, Nova Scotia Paesens-Moddergat Ngerulmud Nukunonu Oost-Vlieland Wervershoof Sortavala Copenhagen Motril Ohrid Puttershoek Lilla Essingen Vuontisjärvi Elleholm Spencer's Island Y Felinheli Salmon Arm Eastern Tickle Jan Mayen Jormua Landön Alcobaça, Portugal Sicamous, British Columbia Shlisselburg Toronto Heinenoord Callao Tipaza Honiara Thénia De Cocksdorp Managua Peniche Muiderberg Vaalajärvi Beetz Marken Nellim Ramsberg am Brombachsee Almonte Amini Jyväskylä Awala-Yalimapo Bukoba Vigo Suva Andijk Bichura Manoka Vingt Cinq Nouakchott Keväjärvi Panama City Arrecife Freetown Twillingate Antonovka Djibouti Reimerswaal Conakry Point Cires Guernsey Port Greville Unterwurmbach Mijas Bujumbura Ylläsjärvi Aurovka Almería Ioannina Scharwoude, Koggenland Sidi Daoud Cádiz Fraserville, Nova Scotia Bovenkarspel Niulakita Almere Haven Malé West-Terschelling Stora Essingen Skikda Banevurovo Mogadishu Yampupata Ettling Moroni Salé Jinotega Essaouira Canary Islands Caravela Perim Maó-Mahón Port Vila Boumerdès Mijnsheerenland Lelystad Vaghena Island Kelontekemä Isola dei Pescatori Edam Capolago Funafala Vestmannaeyjar Huizen Ydrefors Arenibek A Coruña Novaya Ladoga Reykjavík Victoria Oosterdijk, Enkhuizen Virmaila Maasdam Ruo Deline Bönigen Easter Island Palma Beirut Apia Palmyra Atoll Schellinkhout Sachs Harbour San Cristóbal de La Laguna Schardam Zurich, Friesland Lobsing Oranje, Drenthe Lakewood Tarifa Canberra Aunu'u Arzew Tolhuin Too Good Arm Barra de Potosí Birgitz Vikajärvi
215
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action count
action filter_multi_types
action find
entity Bosso
relation located next to body of water
type body of water
type watercourse
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?x ) WHERE { VALUES ( ?h ) { ( ontology:body_of_water ) ( ontology:watercourse ) } . ?i rdf:type ?h } GROUP BY ?u } . FILTER ( ?x < ?s ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { ?j rdf:type ?g . VALUES ( ?g ) { ( ontology:body_of_water ) ( ontology:watercourse ) } } . resource:Bosso property:located_next_to_body_of_water ?j } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q959517
P206
Q15324 Q355304 Q56061
USER
And also tell me about Koygolo?
(c(Q56061),P206,c(Q15324)|c(Q355304))
action count
action less
action union
action find_tuple_counts
relation P206
type Q56061
type Q15324
action find_tuple_counts
relation P206
type Q56061
type Q355304
action count
action filter_multi_types
action find
entity Q959517
relation P206
type Q15324
type Q355304
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?h WHERE { ?g rdf:type ?t . VALUES ( ?t ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q959517 property:P206 ?q . { { ?q rdf:type ontology:Q15324 } UNION { ?q rdf:type ontology:Q355304 } } } } . FILTER ( ?p < ?a ) }
Koygolo
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action count
action filter_multi_types
action find
entity Koygolo
relation located next to body of water
type body of water
type watercourse
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?h WHERE { ?g rdf:type ?t . VALUES ( ?t ) { ( ontology:watercourse ) ( ontology:body_of_water ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Koygolo property:located_next_to_body_of_water ?q . { { ?q rdf:type ontology:body_of_water } UNION { ?q rdf:type ontology:watercourse } } } } . FILTER ( ?p < ?a ) }
[]
body of water watercourse administrative territorial entity
SYSTEM
215
Q3579 Q18682792 Q2255397 Q9248 Q740149 Q493544 Q957593 Q3718 Q4359610 Q83178 Q25231 Q3549178 Q1416753 Q622030 Q11974 Q609698 Q254734 Q631517 Q1521492 Q38834 Q7977 Q2088134 Q5350973 Q156325 Q985587 Q7673494 Q73049 Q385386 Q2726062 Q625761 Q2357495 Q1650017 Q14621387 Q3929 Q328121 Q1018010 Q47164 Q810309 Q3897 Q3894 Q15320 Q36433 Q179454 Q23800 Q1020776 Q19613124 Q473914 Q206954 Q8818 Q1718608 Q208337 Q3761 Q174054 Q3483520 Q484799 Q14328 Q9918 Q11902175 Q997407 Q2467 Q3561 Q3021755 Q131233 Q2482545 Q5465 Q20730670 Q12246 Q4975194 Q2227038 Q212096 Q986079 Q2280 Q49149 Q8851 Q10509 Q334 Q5476889 Q1454043 Q515229 Q656709 Q2719861 Q846188 Q196397 Q1748 Q210093 Q1223508 Q2677934 Q1042366 Q11901984 Q966534 Q14875773 Q3398922 Q3010939 Q5330523 Q14056 Q6278969 Q1390389 Q651997 Q7507390 Q15339 Q172 Q847085 Q105037 Q214843 Q40921 Q2225013 Q119446 Q3274 Q941967 Q1807382 Q11899935 Q14947347 Q301415 Q920968 Q49414 Q736906 Q586112 Q134620 Q791602 Q654259 Q8745 Q38807 Q491999 Q19613821 Q6751200 Q2191422 Q3688 Q6397865 Q3306 Q647543 Q3780 Q1732099 Q19613231 Q3604 Q2590944 Q3733 Q1189066 Q25230 Q7230655 Q810092 Q492744 Q3854 Q11902896 Q4072448 Q10400 Q183199 Q2350941 Q311809 Q15682 Q5493749 Q674395 Q632489 Q2157144 Q9347 Q2785515 Q1043368 Q2292517 Q13640603 Q2449 Q1624013 Q17483998 Q3901 Q466046 Q1026296 Q216939 Q5813 Q767357 Q1160017 Q49550 Q37806 Q770518 Q922981 Q166065 Q2713838 Q18681979 Q304108 Q77056 Q58940 Q2423894 Q187251 Q9939 Q8050719 Q12762569 Q8757 Q15287 Q1764 Q3940 Q2236639 Q11901684 Q2124272 Q602314 Q1270505 Q65502 Q14452 Q8826 Q3820 Q36260 Q123076 Q2627415 Q719379 Q54898 Q3361880 Q230406 Q1867127 Q502398 Q570990 Q222702 Q3114 Q773919 Q2084446 Q2350685 Q7823825 Q14205508 Q670057 Q11901400
(c(Q56061),P206,c(Q15324)|c(Q355304))
action count
action less
action union
action find_tuple_counts
relation P206
type Q56061
type Q15324
action find_tuple_counts
relation P206
type Q56061
type Q355304
action count
action filter_multi_types
action find
entity Q959517
relation P206
type Q15324
type Q355304
[ANSWER]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?h WHERE { ?g rdf:type ?t . VALUES ( ?t ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q959517 property:P206 ?q . { { ?q rdf:type ontology:Q15324 } UNION { ?q rdf:type ontology:Q355304 } } } } . FILTER ( ?p < ?a ) }
Tripoli Vaattojärvi Uitdam Baku Södermalm Makkum Den Oever Dakar El Pescadero Almere Svalbard Onari Sitra Palos de la Frontera Las Palmas de Gran Canaria Lorain Äkäslompolo Marivan Ghazaouet Nuku'alofa Priozersk San José del Cabo El Centenario Juan Fernández Islands Lee-on-the-Solent Taboiaki Hindeloopen Spakenburg Westmaas Bandipore Paesens Sidi Abdelaziz Anna Port Louis Greater Tokyo Area Sidi Barrani Santa Monica Oberwurmbach Luanda Kampala Syasstroy Porto Pitkyaranta Valletta Cabo San Lucas Alekseyevka Ibiza Town Kastoria Valencia Speising Koltur Accra Isola Bella Siggebohyttan Marbella Santa Cruz de Tenerife Enkhuizen Väylä Bubaque Nassau Algiers Dellys South Tarawa Tortuguero Cape Town Glen Cove Huelva Brookville, Nova Scotia Warder, Netherlands Kastelorizo Castro Marim Municipality Minsk Nantucket Málaga Elche Singapore Fox River, Nova Scotia Paesens-Moddergat Ngerulmud Nukunonu Oost-Vlieland Wervershoof Sortavala Copenhagen Motril Ohrid Puttershoek Lilla Essingen Vuontisjärvi Elleholm Spencer's Island Y Felinheli Salmon Arm Eastern Tickle Jan Mayen Jormua Landön Alcobaça, Portugal Sicamous, British Columbia Shlisselburg Toronto Heinenoord Callao Tipaza Honiara Thénia De Cocksdorp Managua Peniche Muiderberg Vaalajärvi Beetz Marken Nellim Ramsberg am Brombachsee Almonte Amini Jyväskylä Awala-Yalimapo Bukoba Vigo Suva Andijk Bichura Manoka Vingt Cinq Nouakchott Keväjärvi Panama City Arrecife Freetown Twillingate Antonovka Djibouti Reimerswaal Conakry Point Cires Guernsey Port Greville Unterwurmbach Mijas Bujumbura Ylläsjärvi Aurovka Almería Ioannina Scharwoude, Koggenland Sidi Daoud Cádiz Fraserville, Nova Scotia Bovenkarspel Niulakita Almere Haven Malé West-Terschelling Stora Essingen Skikda Banevurovo Mogadishu Yampupata Ettling Moroni Salé Jinotega Essaouira Canary Islands Caravela Perim Maó-Mahón Port Vila Boumerdès Mijnsheerenland Lelystad Vaghena Island Kelontekemä Isola dei Pescatori Edam Capolago Funafala Vestmannaeyjar Huizen Ydrefors Arenibek A Coruña Novaya Ladoga Reykjavík Victoria Oosterdijk, Enkhuizen Virmaila Maasdam Ruo Deline Bönigen Easter Island Palma Beirut Apia Palmyra Atoll Schellinkhout Sachs Harbour San Cristóbal de La Laguna Schardam Zurich, Friesland Lobsing Oranje, Drenthe Lakewood Tarifa Canberra Aunu'u Arzew Tolhuin Too Good Arm Barra de Potosí Birgitz Vikajärvi
215
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action count
action filter_multi_types
action find
entity Koygolo
relation located next to body of water
type body of water
type watercourse
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?h WHERE { ?g rdf:type ?t . VALUES ( ?t ) { ( ontology:watercourse ) ( ontology:body_of_water ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Koygolo property:located_next_to_body_of_water ?q . { { ?q rdf:type ontology:body_of_water } UNION { ?q rdf:type ontology:watercourse } } } } . FILTER ( ?p < ?a ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q711971 Q6039297
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Peter Pedersen or Tiaan Kannemeyer ?
OR((Q6039297,P27,c(Q15617994)), (Q711971,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6039297
relation P27
action find
entity Q711971
relation P27
type Q15617994
{'OR': [['Q6039297', 'P27', {'concept': 'Q15617994'}], ['Q711971', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q711971 property:P27 ?n } UNION { resource:Q6039297 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Tiaan Kannemeyer Peter Pedersen
action filter_type
action union
action find
entity Peter Pedersen
relation country of citizenship
action find
entity Tiaan Kannemeyer
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Peter Pedersen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tiaan Kannemeyer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Tiaan_Kannemeyer property:country_of_citizenship ?n } UNION { resource:Peter_Pedersen property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q258 Q34
SYSTEM
South Africa, Sweden
Q258 Q34
OR((Q6039297,P27,c(Q15617994)), (Q711971,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6039297
relation P27
action find
entity Q711971
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Peter Pedersen or Tiaan Kannemeyer
{'OR': [['Q6039297', 'P27', {'concept': 'Q15617994'}], ['Q711971', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q711971 property:P27 ?n } UNION { resource:Q6039297 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
South Africa Sweden
South Africa and Sweden are the countries of citizenship of Peter Pedersen or Tiaan Kannemeyer
South Africa Sweden
action filter_type
action union
action find
entity Peter Pedersen
relation country of citizenship
action find
entity Tiaan Kannemeyer
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Peter Pedersen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tiaan Kannemeyer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Tiaan_Kannemeyer property:country_of_citizenship ?n } UNION { resource:Peter_Pedersen property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Do Australia have diplomatic associations with those administrative territories ?
(Q408,P530,Q258) (Q408,P530,Q34)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q258'] ['Q408', 'P530', 'Q34']
ASK WHERE { resource:Q408 property:P530 ?y . VALUES ( ?y ) { ( resource:Q258 ) ( resource:Q34 ) } }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'South Africa'] ['Australia', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Australia property:diplomatic_relation ?y . VALUES ( ?y ) { ( resource:South_Africa ) ( resource:Sweden ) } }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q258) (Q408,P530,Q34)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q258'] ['Q408', 'P530', 'Q34']
ASK WHERE { resource:Q408 property:P530 ?y . VALUES ( ?y ) { ( resource:Q258 ) ( resource:Q34 ) } }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'South Africa'] ['Australia', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Australia property:diplomatic_relation ?y . VALUES ( ?y ) { ( resource:South_Africa ) ( resource:Sweden ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q34 Q38 Q6693425
P530
Q15617994
USER
Does Sweden have diplomatic relations with Italy and Lower Dauphin School District ?
(Q34,P530,Q38) (Q34,P530,Q6693425)
action is_in
entity Q34
action intersection
action find_reverse
entity Q38
relation P530
action find_reverse
entity Q6693425
relation P530
['Q34', 'P530', 'Q38'] ['Q34', 'P530', 'Q6693425']
ASK WHERE { resource:Q34 property:P530 resource:Q38 . resource:Q34 property:P530 resource:Q6693425 }
Sweden Italy Lower Dauphin School District
action is_in
entity Sweden
action intersection
action find_reverse
entity Italy
relation diplomatic relation
action find_reverse
entity Lower Dauphin School District
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Italy'] ['Sweden', 'diplomatic relation', 'Lower Dauphin School District']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Italy . resource:Sweden property:diplomatic_relation resource:Lower_Dauphin_School_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q34,P530,Q38) (Q34,P530,Q6693425)
action is_in
entity Q34
action intersection
action find_reverse
entity Q38
relation P530
action find_reverse
entity Q6693425
relation P530
[ANSWER]
['Q34', 'P530', 'Q38'] ['Q34', 'P530', 'Q6693425']
ASK WHERE { resource:Q34 property:P530 resource:Q38 . resource:Q34 property:P530 resource:Q6693425 }
YES and NO respectively
action is_in
entity Sweden
action intersection
action find_reverse
entity Italy
relation diplomatic relation
action find_reverse
entity Lower Dauphin School District
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Italy'] ['Sweden', 'diplomatic relation', 'Lower Dauphin School District']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Italy . resource:Sweden property:diplomatic_relation resource:Lower_Dauphin_School_District }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q34 Q334
P530
Q1048835
USER
How many political territories have diplomatic relations with Sweden and Singapore ?
(c(Q1048835),P530,Q34) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q34
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q34'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:P530 resource:Q334 . ?e rdf:type ontology:Q1048835 . ?e property:P530 resource:Q34 . ?e rdf:type ontology:Q1048835 }
Sweden Singapore
action count
action intersection
action filter_type
action find_reverse
entity Sweden
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Sweden'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:diplomatic_relation resource:Singapore . ?e rdf:type ontology:political_territorial_entity . ?e property:diplomatic_relation resource:Sweden . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q16 Q408 Q183
(c(Q1048835),P530,Q34) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q34
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q34'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:P530 resource:Q334 . ?e rdf:type ontology:Q1048835 . ?e property:P530 resource:Q34 . ?e rdf:type ontology:Q1048835 }
Canada Australia Germany
3
action count
action intersection
action filter_type
action find_reverse
entity Sweden
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Sweden'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:diplomatic_relation resource:Singapore . ?e rdf:type ontology:political_territorial_entity . ?e property:diplomatic_relation resource:Sweden . ?e rdf:type ontology:political_territorial_entity }
[]