Simple Question (Direct)
Simple Question
Q1788707
P27
Q1048835
USER
Which political territory is Tanja Großer a civilian of ?
(Q1788707,P27,c(Q1048835))
action filter_type
action find
entity Q1788707
relation P27
type Q1048835
['Q1788707', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q1788707 property:P27 ?u . ?u rdf:type ontology:Q1048835 }
Tanja Großer
action filter_type
action find
entity Tanja Großer
relation country of citizenship
type political territorial entity
['Tanja Großer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Tanja_Großer property:country_of_citizenship ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1788707,P27,c(Q1048835))
action filter_type
action find
entity Q1788707
relation P27
type Q1048835
[ANSWER] is Tanja Großer a civilian of
['Q1788707', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q1788707 property:P27 ?u . ?u rdf:type ontology:Q1048835 }
Germany
Germany is Tanja Großer a civilian of
Germany
action filter_type
action find
entity Tanja Großer
relation country of citizenship
type political territorial entity
['Tanja Großer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Tanja_Großer property:country_of_citizenship ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P530
Q7275
USER
Which state has ambassadorial relations with that political territory ?
(c(Q7275),P530,Q183)
action filter_type
action find
entity Q183
relation P530
type Q7275
[{'concept': 'Q7275'}, 'P530', 'Q183']
SELECT DISTINCT ?s WHERE { resource:Q183 property:P530 ?s . ?s rdf:type ontology:Q7275 }
Germany
action filter_type
action find
entity Germany
relation diplomatic relation
type state
[{'concept': 'state'}, 'diplomatic relation', 'Germany']
SELECT DISTINCT ?s WHERE { resource:Germany property:diplomatic_relation ?s . ?s rdf:type ontology:state }
[]
state
Q16957
SYSTEM
East Germany
Q16957
(c(Q7275),P530,Q183)
action filter_type
action find
entity Q183
relation P530
type Q7275
[ANSWER] has ambassadorial relations with that political territory
[{'concept': 'Q7275'}, 'P530', 'Q183']
SELECT DISTINCT ?s WHERE { resource:Q183 property:P530 ?s . ?s rdf:type ontology:Q7275 }
East Germany
East Germany has ambassadorial relations with that political territory
East Germany
action filter_type
action find
entity Germany
relation diplomatic relation
type state
[{'concept': 'state'}, 'diplomatic relation', 'Germany']
SELECT DISTINCT ?s WHERE { resource:Germany property:diplomatic_relation ?s . ?s rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16957
P551
Q502895
USER
Who lives in that state ?
(c(Q502895),P551,Q16957)
action filter_type
action find_reverse
entity Q16957
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q16957']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P551 resource:Q16957 }
East Germany
action filter_type
action find_reverse
entity East Germany
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'East Germany']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:residence resource:East_Germany }
[]
common name
Q57475 Q19364345 Q22087732
SYSTEM
Klaus Fuchs, Katerina Tikhonova, Johann Schmidt junior
Q57475 Q19364345 Q22087732
(c(Q502895),P551,Q16957)
action filter_type
action find_reverse
entity Q16957
relation P551
type Q502895
[ANSWERS] live in that state
[{'concept': 'Q502895'}, 'P551', 'Q16957']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P551 resource:Q16957 }
Klaus Fuchs Katerina Tikhonova Johann Schmidt junior
Klaus Fuchs, Katerina Tikhonova and Johann Schmidt junior live in that state
Klaus Fuchs Katerina Tikhonova Johann Schmidt junior
action filter_type
action find_reverse
entity East Germany
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'East Germany']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:residence resource:East_Germany }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q490 Q1788707
P19 P190
Q56061
USER
Which administrative territories are the birthplace of Tanja Großer or are twin cities of Milan ?
OR((Q1788707,P19,c(Q56061)), (Q490,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1788707
relation P19
action find
entity Q490
relation P190
type Q56061
{'OR': [['Q1788707', 'P19', {'concept': 'Q56061'}], ['Q490', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1788707 property:P19 ?i } UNION { resource:Q490 property:P190 ?i } } . ?i rdf:type ontology:Q56061 }
Milan Tanja Großer
action filter_type
action union
action find
entity Tanja Großer
relation place of birth
action find
entity Milan
relation sister city
type administrative territorial entity
{'OR': [['Tanja Großer', 'place of birth', {'concept': 'administrative territorial entity'}], ['Milan', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Tanja_Großer property:place_of_birth ?i } UNION { resource:Milan property:sister_city ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q121157 Q8686 Q174 Q5776 Q3130 Q3718 Q3141 Q185289 Q472 Q3805
SYSTEM
Some of them are Mashhad, Shanghai, São Paulo, Bethlehem, Sydney, Dakar, Melbourne, Pernik, Sofia, Amman
Q546 Q3718 Q174 Q8686 Q172 Q3141 Q340 Q2634 Q33935 Q34820 Q193289 Q472 Q185289 Q956 Q3130 Q64 Q3805 Q5776 Q1297 Q121157
OR((Q1788707,P19,c(Q56061)), (Q490,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1788707
relation P19
action find
entity Q490
relation P190
type Q56061
[ANSWERS] are the birthplace of Tanja Großer or are twin cities of Milan
{'OR': [['Q1788707', 'P19', {'concept': 'Q56061'}], ['Q490', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1788707 property:P19 ?i } UNION { resource:Q490 property:P190 ?i } } . ?i rdf:type ontology:Q56061 }
Trieste Dakar São Paulo Shanghai Toronto Melbourne Montreal Naples Tel Aviv Santo Domingo Iquitos Sofia Pernik Beijing Sydney Berlin Amman Bethlehem Chicago Mashhad
Mashhad, Shanghai, São Paulo, Bethlehem, Sydney, Dakar, Melbourne, Pernik, Sofia and Amman are the birthplace of Tanja Großer or are twin cities of Milan
Mashhad Shanghai São Paulo Bethlehem Sydney Dakar Melbourne Pernik Sofia Amman
action filter_type
action union
action find
entity Tanja Großer
relation place of birth
action find
entity Milan
relation sister city
type administrative territorial entity
{'OR': [['Tanja Großer', 'place of birth', {'concept': 'administrative territorial entity'}], ['Milan', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Tanja_Großer property:place_of_birth ?i } UNION { resource:Milan property:sister_city ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1807728
P206
Q337567 Q15324 Q56061
USER
How many administrative territories are located in the neighbourhood of approximately the same number of still waterss and bodies of water as Samhah ?
(c(Q56061),P206,c(Q337567)|c(Q15324))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q1807728
relation P206
type Q337567
type Q15324
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?v WHERE { VALUES ( ?y ) { ( ontology:Q15324 ) ( ontology:Q337567 ) } . ?q rdf:type ?y } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Q1807728 property:P206 ?m . { { ?m rdf:type ontology:Q337567 } UNION { ?m rdf:type ontology:Q15324 } } } } . FILTER ( ?t = ?f ) }
Samhah
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Samhah
relation located next to body of water
type still waters
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?v WHERE { VALUES ( ?y ) { ( ontology:body_of_water ) ( ontology:still_waters ) } . ?q rdf:type ?y } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Samhah property:located_next_to_body_of_water ?m . { { ?m rdf:type ontology:still_waters } UNION { ?m rdf:type ontology:body_of_water } } } } . FILTER ( ?t = ?f ) }
[]
still waters body of water administrative territorial entity
SYSTEM
201
Q18682792 Q2255397 Q740149 Q12273 Q3818 Q770885 Q4083209 Q501661 Q501744 Q1939468 Q1715 Q548441 Q331556 Q609698 Q254734 Q631517 Q2943426 Q17151 Q15982011 Q1636296 Q105342 Q1757 Q7977 Q47048 Q501090 Q385386 Q1113813 Q34820 Q2726062 Q625761 Q991661 Q3894 Q11901685 Q15320 Q2060910 Q179454 Q2921491 Q206954 Q15981916 Q1335 Q28721 Q903595 Q174054 Q3483520 Q9918 Q11902175 Q9911 Q6465685 Q41295 Q2861 Q2227038 Q37133 Q207998 Q3792 Q52437 Q2598092 Q2983392 Q463937 Q3630 Q12994 Q282461 Q995806 Q35178 Q4119405 Q196397 Q1563 Q1223508 Q1042366 Q991274 Q3299785 Q9536 Q849441 Q15068816 Q10707890 Q11901984 Q3947670 Q2229853 Q969531 Q851034 Q3595479 Q614919 Q3010939 Q36281 Q1000107 Q1442470 Q21060 Q6278969 Q2021057 Q1390389 Q200036 Q517053 Q7507390 Q15339 Q172 Q39178 Q3274 Q1807382 Q11899935 Q2684898 Q920968 Q9310 Q1052027 Q1874 Q837211 Q239496 Q959 Q654259 Q3932309 Q2745332 Q213707 Q1770 Q41699 Q425786 Q938379 Q6397865 Q1025014 Q227064 Q2893117 Q7314172 Q840867 Q133123 Q986387 Q865021 Q3604 Q2238911 Q1330853 Q5379235 Q11902896 Q183199 Q1737 Q2350941 Q10690 Q5926907 Q16953999 Q674395 Q724394 Q4347874 Q1043368 Q36526 Q2727978 Q2666506 Q1026296 Q1419813 Q62 Q3882 Q3889 Q1616324 Q2928585 Q79716 Q922981 Q166065 Q930204 Q18681979 Q10313 Q727 Q304108 Q77056 Q58940 Q990130 Q368275 Q79848 Q12762569 Q2413248 Q34692 Q913649 Q585 Q15287 Q220 Q11901684 Q2729387 Q2124272 Q1270505 Q176749 Q65502 Q100 Q11873187 Q36262 Q2627415 Q569080 Q18386455 Q3932 Q2235 Q1025353 Q1572113 Q3361880 Q683125 Q570990 Q2978763 Q36600 Q36168 Q743521 Q1807728 Q11901258 Q446232 Q41547 Q2350685 Q1552720 Q505601 Q11901400 Q991400 Q1758944
(c(Q56061),P206,c(Q337567)|c(Q15324))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q1807728
relation P206
type Q337567
type Q15324
[ANSWER]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?v WHERE { VALUES ( ?y ) { ( ontology:Q15324 ) ( ontology:Q337567 ) } . ?q rdf:type ?y } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Q1807728 property:P206 ?m . { { ?m rdf:type ontology:Q337567 } UNION { ?m rdf:type ontology:Q15324 } } } } . FILTER ( ?t = ?f ) }
Vaattojärvi Uitdam Södermalm Gijón Malabo Bergen aan Zee Seymour Arm Schleswig Alert Paravur Hanover Portugalete Bosaso Lorain Äkäslompolo Marivan Cayo Santa María Thessaloniki El Teso Hulhumalé Bolshoy Kamen Helsinki Priozersk Oulu Castro Urdiales Spakenburg Come By Chance, Newfoundland and Labrador Santo Domingo Westmaas Bandipore Callantsoog Kampala Virkkula Syasstroy Fuvahmulah Pitkyaranta Katwijk aan Zee Kastoria El Sargento Montevideo Beeston Regis Volendam Isola Bella Siggebohyttan Enkhuizen Väylä Den Helder La Ventana Basseterre Rostock Warder, Netherlands Mariupol Fethiye Lomé Murano Shorne Colliers Saint Thomas Jakarta Bruges IJmuiden Dobrzyń nad Wisłą Kuwait City Nabih Saleh Sortavala Havana Ohrid Lilla Essingen Kalamos Halat Nuaim Bad Doberan Saint John Norris Arm Olhava Vuontisjärvi San Mauro Mare Velsen-Noord Monster San Leandro Andrott Atokos Salmon Arm Roseau Kijkduin Santoña Ouddorp Jormua Hindersön Landön Volos De Koog Sicamous, British Columbia Shlisselburg Toronto Port of Spain Managua Muiderberg Vaalajärvi Ter Heijde Nellim Dili Cayo Largo del Sur Odessa Scheveningen Sheringham Vladivostok Bukoba Nieuw-Haamstede Villa Las Estrellas Grímsey Tallinn Castries 's-Gravenzande Samarai Keväjärvi Inari Zoutelande Beit Ummar Reposaari Rudnaya Pristan Patras Cárdenas Birchington-on-Sea Djibouti Kumta Vilsandi Ennore Ylläsjärvi Ioannina Bregenz Scharwoude, Koggenland Cardiff Hubbards, Nova Scotia Daloloia Group Bovenkarspel Poros Emäsalo Stora Essingen Port Moresby Karwar Panaeati Island Jinotega Roatán San Francisco Manama Maputo Egmond aan Zee Burnt Islands, Newfoundland and Labrador Whittier Mijnsheerenland Lelystad Wells-next-the-Sea Kelontekemä Donostia/San Sebastián Amsterdam Isola dei Pescatori Edam Capolago Hook of Holland Spetses Southampton Arenibek Cayo Romano Kingston Wijk aan Zee Oslo Novaya Ladoga Rome Virmaila Huisduinen Maasdam Deline Villingili Bönigen Boston Kuivaniemi St. John's Schellinkhout Koipsi Canoe Island São Tomé Veliky Novgorod Cadzand-Bad Útila Schardam Ustronie Morskie Lakewood Clearwater Beach The Hague Bridgetown Scarborough Samhah Vihiluoto Petten St. George's Tolhuin Guanaja Wassenaar Vikajärvi Puerto Barrios Rottumeroog
201
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Samhah
relation located next to body of water
type still waters
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?v WHERE { VALUES ( ?y ) { ( ontology:body_of_water ) ( ontology:still_waters ) } . ?q rdf:type ?y } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Samhah property:located_next_to_body_of_water ?m . { { ?m rdf:type ontology:still_waters } UNION { ?m rdf:type ontology:body_of_water } } } } . FILTER ( ?t = ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3299785
P206
Q337567 Q15324 Q56061
USER
And also tell me about Halat Nuaim?
(c(Q56061),P206,c(Q337567)|c(Q15324))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q3299785
relation P206
type Q337567
type Q15324
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?q ) WHERE { { ?y property:P206 ?x . ?y rdf:type ontology:Q56061 . ?x rdf:type ontology:Q15324 } UNION { ?y rdf:type ontology:Q56061 . ?x rdf:type ontology:Q337567 . ?y property:P206 ?x } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { { ?j rdf:type ontology:Q337567 } UNION { ?j rdf:type ontology:Q15324 } } . resource:Q3299785 property:P206 ?j } } . FILTER ( ?q = ?b ) }
Halat Nuaim
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Halat Nuaim
relation located next to body of water
type still waters
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?q ) WHERE { { ?y property:located_next_to_body_of_water ?x . ?y rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:body_of_water } UNION { ?y rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:still_waters . ?y property:located_next_to_body_of_water ?x } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { { ?j rdf:type ontology:still_waters } UNION { ?j rdf:type ontology:body_of_water } } . resource:Halat_Nuaim property:located_next_to_body_of_water ?j } } . FILTER ( ?q = ?b ) }
[]
still waters body of water administrative territorial entity
SYSTEM
201
Q18682792 Q2255397 Q740149 Q12273 Q3818 Q770885 Q4083209 Q501661 Q501744 Q1939468 Q1715 Q548441 Q331556 Q609698 Q254734 Q631517 Q2943426 Q17151 Q15982011 Q1636296 Q105342 Q1757 Q7977 Q47048 Q501090 Q385386 Q1113813 Q34820 Q2726062 Q625761 Q991661 Q3894 Q11901685 Q15320 Q2060910 Q179454 Q2921491 Q206954 Q15981916 Q1335 Q28721 Q903595 Q174054 Q3483520 Q9918 Q11902175 Q9911 Q6465685 Q41295 Q2861 Q2227038 Q37133 Q207998 Q3792 Q52437 Q2598092 Q2983392 Q463937 Q3630 Q12994 Q282461 Q995806 Q35178 Q4119405 Q196397 Q1563 Q1223508 Q1042366 Q991274 Q3299785 Q9536 Q849441 Q15068816 Q10707890 Q11901984 Q3947670 Q2229853 Q969531 Q851034 Q3595479 Q614919 Q3010939 Q36281 Q1000107 Q1442470 Q21060 Q6278969 Q2021057 Q1390389 Q200036 Q517053 Q7507390 Q15339 Q172 Q39178 Q3274 Q1807382 Q11899935 Q2684898 Q920968 Q9310 Q1052027 Q1874 Q837211 Q239496 Q959 Q654259 Q3932309 Q2745332 Q213707 Q1770 Q41699 Q425786 Q938379 Q6397865 Q1025014 Q227064 Q2893117 Q7314172 Q840867 Q133123 Q986387 Q865021 Q3604 Q2238911 Q1330853 Q5379235 Q11902896 Q183199 Q1737 Q2350941 Q10690 Q5926907 Q16953999 Q674395 Q724394 Q4347874 Q1043368 Q36526 Q2727978 Q2666506 Q1026296 Q1419813 Q62 Q3882 Q3889 Q1616324 Q2928585 Q79716 Q922981 Q166065 Q930204 Q18681979 Q10313 Q727 Q304108 Q77056 Q58940 Q990130 Q368275 Q79848 Q12762569 Q2413248 Q34692 Q913649 Q585 Q15287 Q220 Q11901684 Q2729387 Q2124272 Q1270505 Q176749 Q65502 Q100 Q11873187 Q36262 Q2627415 Q569080 Q18386455 Q3932 Q2235 Q1025353 Q1572113 Q3361880 Q683125 Q570990 Q2978763 Q36600 Q36168 Q743521 Q1807728 Q11901258 Q446232 Q41547 Q2350685 Q1552720 Q505601 Q11901400 Q991400 Q1758944
(c(Q56061),P206,c(Q337567)|c(Q15324))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q3299785
relation P206
type Q337567
type Q15324
[ANSWER]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?q ) WHERE { { ?y property:P206 ?x . ?y rdf:type ontology:Q56061 . ?x rdf:type ontology:Q15324 } UNION { ?y rdf:type ontology:Q56061 . ?x rdf:type ontology:Q337567 . ?y property:P206 ?x } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { { ?j rdf:type ontology:Q337567 } UNION { ?j rdf:type ontology:Q15324 } } . resource:Q3299785 property:P206 ?j } } . FILTER ( ?q = ?b ) }
Vaattojärvi Uitdam Södermalm Gijón Malabo Bergen aan Zee Seymour Arm Schleswig Alert Paravur Hanover Portugalete Bosaso Lorain Äkäslompolo Marivan Cayo Santa María Thessaloniki El Teso Hulhumalé Bolshoy Kamen Helsinki Priozersk Oulu Castro Urdiales Spakenburg Come By Chance, Newfoundland and Labrador Santo Domingo Westmaas Bandipore Callantsoog Kampala Virkkula Syasstroy Fuvahmulah Pitkyaranta Katwijk aan Zee Kastoria El Sargento Montevideo Beeston Regis Volendam Isola Bella Siggebohyttan Enkhuizen Väylä Den Helder La Ventana Basseterre Rostock Warder, Netherlands Mariupol Fethiye Lomé Murano Shorne Colliers Saint Thomas Jakarta Bruges IJmuiden Dobrzyń nad Wisłą Kuwait City Nabih Saleh Sortavala Havana Ohrid Lilla Essingen Kalamos Halat Nuaim Bad Doberan Saint John Norris Arm Olhava Vuontisjärvi San Mauro Mare Velsen-Noord Monster San Leandro Andrott Atokos Salmon Arm Roseau Kijkduin Santoña Ouddorp Jormua Hindersön Landön Volos De Koog Sicamous, British Columbia Shlisselburg Toronto Port of Spain Managua Muiderberg Vaalajärvi Ter Heijde Nellim Dili Cayo Largo del Sur Odessa Scheveningen Sheringham Vladivostok Bukoba Nieuw-Haamstede Villa Las Estrellas Grímsey Tallinn Castries 's-Gravenzande Samarai Keväjärvi Inari Zoutelande Beit Ummar Reposaari Rudnaya Pristan Patras Cárdenas Birchington-on-Sea Djibouti Kumta Vilsandi Ennore Ylläsjärvi Ioannina Bregenz Scharwoude, Koggenland Cardiff Hubbards, Nova Scotia Daloloia Group Bovenkarspel Poros Emäsalo Stora Essingen Port Moresby Karwar Panaeati Island Jinotega Roatán San Francisco Manama Maputo Egmond aan Zee Burnt Islands, Newfoundland and Labrador Whittier Mijnsheerenland Lelystad Wells-next-the-Sea Kelontekemä Donostia/San Sebastián Amsterdam Isola dei Pescatori Edam Capolago Hook of Holland Spetses Southampton Arenibek Cayo Romano Kingston Wijk aan Zee Oslo Novaya Ladoga Rome Virmaila Huisduinen Maasdam Deline Villingili Bönigen Boston Kuivaniemi St. John's Schellinkhout Koipsi Canoe Island São Tomé Veliky Novgorod Cadzand-Bad Útila Schardam Ustronie Morskie Lakewood Clearwater Beach The Hague Bridgetown Scarborough Samhah Vihiluoto Petten St. George's Tolhuin Guanaja Wassenaar Vikajärvi Puerto Barrios Rottumeroog
201
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Halat Nuaim
relation located next to body of water
type still waters
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?q ) WHERE { { ?y property:located_next_to_body_of_water ?x . ?y rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:body_of_water } UNION { ?y rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:still_waters . ?y property:located_next_to_body_of_water ?x } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { { ?j rdf:type ontology:still_waters } UNION { ?j rdf:type ontology:body_of_water } } . resource:Halat_Nuaim property:located_next_to_body_of_water ?j } } . FILTER ( ?q = ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q472
P138
Q34442
USER
Which road is the eponym of Sofia ?
(c(Q34442),P138,Q472)
action filter_type
action find_reverse
entity Q472
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q472']
SELECT DISTINCT ?o WHERE { ?o property:P138 resource:Q472 . ?o rdf:type ontology:Q34442 }
Sofia
action filter_type
action find_reverse
entity Sofia
relation named after
type road
[{'concept': 'road'}, 'named after', 'Sofia']
SELECT DISTINCT ?o WHERE { ?o property:named_after resource:Sofia . ?o rdf:type ontology:road }
[]
road
Q3451051
SYSTEM
rue de Sofia
Q3451051
(c(Q34442),P138,Q472)
action filter_type
action find_reverse
entity Q472
relation P138
type Q34442
[ANSWER] is the eponym of Sofia
[{'concept': 'Q34442'}, 'P138', 'Q472']
SELECT DISTINCT ?o WHERE { ?o property:P138 resource:Q472 . ?o rdf:type ontology:Q34442 }
rue de Sofia
Rue de Sofia is the eponym of Sofia
rue de Sofia
action filter_type
action find_reverse
entity Sofia
relation named after
type road
[{'concept': 'road'}, 'named after', 'Sofia']
SELECT DISTINCT ?o WHERE { ?o property:named_after resource:Sofia . ?o rdf:type ontology:road }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q472
P17
Q15617994
USER
Which administrative territory is that administrative territory present in ?
(Q3451051,P17,c(Q15617994))
action filter_type
action find
entity Q472
relation P17
type Q15617994
['Q3451051', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q472 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Sofia
action filter_type
action find
entity Sofia
relation country
type designation for an administrative territorial entity
['rue de Sofia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Sofia property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q219
SYSTEM
Bulgaria
Q219
(Q3451051,P17,c(Q15617994))
action filter_type
action find
entity Q472
relation P17
type Q15617994
That administrative territory is in [ANSWER]
['Q3451051', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q472 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Bulgaria
That administrative territory is in Bulgaria
Bulgaria
action filter_type
action find
entity Sofia
relation country
type designation for an administrative territorial entity
['rue de Sofia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Sofia property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q219 Q221
P47
Q15617994
USER
Does Republic of Macedonia have a shared border with that one ?
(Q219,P47,Q221)
action is_in
entity Q221
action find
entity Q219
relation P47
['Q219', 'P47', 'Q221']
ASK WHERE { resource:Q219 property:P47 resource:Q221 }
Bulgaria Republic of Macedonia
action is_in
entity Republic of Macedonia
action find
entity Bulgaria
relation shares border with
['Bulgaria', 'shares border with', 'Republic of Macedonia']
ASK WHERE { resource:Bulgaria property:shares_border_with resource:Republic_of_Macedonia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q219,P47,Q221)
action is_in
entity Q221
action find
entity Q219
relation P47
[ANSWER]
['Q219', 'P47', 'Q221']
ASK WHERE { resource:Q219 property:P47 resource:Q221 }
Yes
action is_in
entity Republic of Macedonia
action find
entity Bulgaria
relation shares border with
['Bulgaria', 'shares border with', 'Republic of Macedonia']
ASK WHERE { resource:Bulgaria property:shares_border_with resource:Republic_of_Macedonia }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q219
P1532
Q502895
USER
Who represent Bulgaria ?
action filter_type
action find_reverse
entity Q219
relation P1532
type Q502895
SELECT DISTINCT ?a WHERE { ?a property:P1532 resource:Q219 . ?a rdf:type ontology:Q502895 }
Bulgaria
action filter_type
action find_reverse
entity Bulgaria
relation country for sport
type common name
SELECT DISTINCT ?a WHERE { ?a property:country_for_sport resource:Bulgaria . ?a rdf:type ontology:common_name }
[]
common name
Q21606426 Q2372574 Q1337374
SYSTEM
Monika Gachevska, Svetlana Leseva, Emilia Dragieva
Q1337374 Q21572741 Q2372574 Q27642886 Q27642880 Q21606426
action filter_type
action find_reverse
entity Q219
relation P1532
type Q502895
The [ANSWERS] represent Bulgaria
SELECT DISTINCT ?a WHERE { ?a property:P1532 resource:Q219 . ?a rdf:type ontology:Q502895 }
Emilia Dragieva Desislava Aleksandrova-Mladenova Svetlana Leseva Georgi Georgiev Georgi Georgiev Monika Gachevska
The Monika Gachevska, Svetlana Leseva and Emilia Dragieva represent Bulgaria
Monika Gachevska Svetlana Leseva Emilia Dragieva
action filter_type
action find_reverse
entity Bulgaria
relation country for sport
type common name
SELECT DISTINCT ?a WHERE { ?a property:country_for_sport resource:Bulgaria . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q472
P609
Q83620
USER
Which thoroughfares have Sofia as their terminus location ?
(c(Q83620),P609,Q472)
action filter_type
action find_reverse
entity Q472
relation P609
type Q83620
[{'concept': 'Q83620'}, 'P609', 'Q472']
SELECT DISTINCT ?g WHERE { ?g property:P609 resource:Q472 . ?g rdf:type ontology:Q83620 }
Sofia
action filter_type
action find_reverse
entity Sofia
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Sofia']
SELECT DISTINCT ?g WHERE { ?g property:terminus_location resource:Sofia . ?g rdf:type ontology:thoroughfare }
[]
thoroughfare
Q429398 Q429141
SYSTEM
Hemus motorway, Trakia motorway
Q429398 Q429141
(c(Q83620),P609,Q472)
action filter_type
action find_reverse
entity Q472
relation P609
type Q83620
[ANSWERS] have Sofia as their terminus location
[{'concept': 'Q83620'}, 'P609', 'Q472']
SELECT DISTINCT ?g WHERE { ?g property:P609 resource:Q472 . ?g rdf:type ontology:Q83620 }
Hemus motorway Trakia motorway
Hemus motorway and Trakia motorway have Sofia as their terminus location
Hemus motorway Trakia motorway
action filter_type
action find_reverse
entity Sofia
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Sofia']
SELECT DISTINCT ?g WHERE { ?g property:terminus_location resource:Sofia . ?g rdf:type ontology:thoroughfare }
[]