Simple Question (Direct)
Simple Question
Q18711275
P19
Q20667921
USER
Where was Hugo Hofstetter born ?
(Q18711275,P19,c(Q20667921))
action filter_type
action find
entity Q18711275
relation P19
type Q20667921
['Q18711275', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q18711275 property:P19 ?e . ?e rdf:type ontology:Q20667921 }
Hugo Hofstetter
action filter_type
action find
entity Hugo Hofstetter
relation place of birth
type type of french administrative division
['Hugo Hofstetter', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Hugo_Hofstetter property:place_of_birth ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q208119
SYSTEM
Altkirch
Q208119
(Q18711275,P19,c(Q20667921))
action filter_type
action find
entity Q18711275
relation P19
type Q20667921
Hugo Hofstetter was born in [ANSWER]
['Q18711275', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q18711275 property:P19 ?e . ?e rdf:type ontology:Q20667921 }
Altkirch
Hugo Hofstetter was born in Altkirch
Altkirch
action filter_type
action find
entity Hugo Hofstetter
relation place of birth
type type of french administrative division
['Hugo Hofstetter', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Hugo_Hofstetter property:place_of_birth ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q208119
P36
Q13220204
USER
Which administrative country subdivision contains that french administrative division as its capital ?
(c(Q13220204),P36,Q208119)
action filter_type
action find_reverse
entity Q208119
relation P36
type Q13220204
[{'concept': 'Q13220204'}, 'P36', 'Q208119']
SELECT DISTINCT ?n WHERE { ?n property:P36 resource:Q208119 . ?n rdf:type ontology:Q13220204 }
Altkirch
action filter_type
action find_reverse
entity Altkirch
relation capital
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'capital', 'Altkirch']
SELECT DISTINCT ?n WHERE { ?n property:capital resource:Altkirch . ?n rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q700392
SYSTEM
arrondissement of Altkirch
Q700392
(c(Q13220204),P36,Q208119)
action filter_type
action find_reverse
entity Q208119
relation P36
type Q13220204
The [ANSWER] contains that french administrative division as its capital
[{'concept': 'Q13220204'}, 'P36', 'Q208119']
SELECT DISTINCT ?n WHERE { ?n property:P36 resource:Q208119 . ?n rdf:type ontology:Q13220204 }
arrondissement of Altkirch
The arrondissement of Altkirch contains that french administrative division as its capital
arrondissement of Altkirch
action filter_type
action find_reverse
entity Altkirch
relation capital
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'capital', 'Altkirch']
SELECT DISTINCT ?n WHERE { ?n property:capital resource:Altkirch . ?n rdf:type ontology:second-level_administrative_country_subdivision }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q986121
P1376
Q13220204 Q486972
USER
Which human settlements are the capital of greater number of administrative country subdivisions than Solec-Zdrój ?
(c(Q486972),P1376,c(Q13220204))
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q13220204
action count
action filter_type
action find
entity Q986121
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?e ) WHERE { ?p property:P1376 ?s . ?p rdf:type ontology:Q486972 . ?s rdf:type ontology:Q13220204 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:Q986121 property:P1376 ?f . ?f rdf:type ontology:Q486972 } } . FILTER ( ?e > ?b ) }
Solec-Zdrój
action greater
action find_tuple_counts
relation capital of
type human settlement
type second-level administrative country subdivision
action count
action filter_type
action find
entity Solec-Zdrój
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?e ) WHERE { ?p property:capital_of ?s . ?p rdf:type ontology:human_settlement . ?s rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:Solec-Zdrój property:capital_of ?f . ?f rdf:type ontology:human_settlement } } . FILTER ( ?e > ?b ) }
[]
second-level administrative country subdivision human settlement
Q31487 Q1799 Q102317
SYSTEM
Kraków, Wrocław, Kielce
Q456784 Q3344109 Q10013 Q102317 Q2303485 Q192508 Q106281 Q3344024 Q19799162 Q2918849 Q158004 Q11002429 Q275592 Q110732 Q465833 Q3344081 Q3348305 Q3299324 Q3777 Q52892 Q1799 Q52845 Q14389109 Q31487 Q11034041 Q9879 Q2734 Q106274 Q3344864 Q81220 Q147934
(c(Q486972),P1376,c(Q13220204))
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q13220204
action count
action filter_type
action find
entity Q986121
relation P1376
type Q486972
[ANSWERS] are the capital of greater number of administrative country subdivisions than Solec-Zdrój
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?e ) WHERE { ?p property:P1376 ?s . ?p rdf:type ontology:Q486972 . ?s rdf:type ontology:Q13220204 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:Q986121 property:P1376 ?f . ?f rdf:type ontology:Q486972 } } . FILTER ( ?e > ?b ) }
Ampelokipoi, Thessaloniki Huacaybamba Hardenberg Kielce Woudrichem Bergen op Zoom Tarnów Panao San Antonio del Estrecho Querobamba Piotrków Trybunalski San Miguel de Pallaques Pińczów Wałbrzych Schagen Chavinillo Puerto Inca Oisterwijk Ouagadougou Leszno Wrocław Konin Steenbergen Kraków San José de Sisa Waalwijk Skierniewice Legnica Llata Goes Jelenia Góra
Kraków, Wrocław and Kielce are the capital of greater number of administrative country subdivisions than Solec-Zdrój
Kraków Wrocław Kielce
action greater
action find_tuple_counts
relation capital of
type human settlement
type second-level administrative country subdivision
action count
action filter_type
action find
entity Solec-Zdrój
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?e ) WHERE { ?p property:capital_of ?s . ?p rdf:type ontology:human_settlement . ?s rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:Solec-Zdrój property:capital_of ?f . ?f rdf:type ontology:human_settlement } } . FILTER ( ?e > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q16898166
P1376
Q13220204 Q486972
USER
And how about Reșița?
(c(Q486972),P1376,c(Q13220204))
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q13220204
action count
action filter_type
action find
entity Q16898166
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?a ) WHERE { ?y property:P1376 ?b . ?y rdf:type ontology:Q486972 . ?b rdf:type ontology:Q13220204 } GROUP BY ?y } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Q16898166 property:P1376 ?e . ?e rdf:type ontology:Q486972 } } }
Reșița
action greater
action find_tuple_counts
relation capital of
type human settlement
type second-level administrative country subdivision
action count
action filter_type
action find
entity Reșița
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?a ) WHERE { ?y property:capital_of ?b . ?y rdf:type ontology:human_settlement . ?b rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?y } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Reșița property:capital_of ?e . ?e rdf:type ontology:human_settlement } } }
[]
second-level administrative country subdivision human settlement
Q31487 Q1799 Q102317
SYSTEM
Kraków, Wrocław, Kielce
Q456784 Q3344109 Q10013 Q102317 Q2303485 Q192508 Q106281 Q3344024 Q19799162 Q2918849 Q158004 Q11002429 Q275592 Q110732 Q465833 Q3344081 Q3348305 Q3299324 Q3777 Q52892 Q1799 Q52845 Q14389109 Q31487 Q11034041 Q9879 Q2734 Q106274 Q3344864 Q81220 Q147934
(c(Q486972),P1376,c(Q13220204))
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q13220204
action count
action filter_type
action find
entity Q16898166
relation P1376
type Q486972
[ANSWERS]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?a ) WHERE { ?y property:P1376 ?b . ?y rdf:type ontology:Q486972 . ?b rdf:type ontology:Q13220204 } GROUP BY ?y } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Q16898166 property:P1376 ?e . ?e rdf:type ontology:Q486972 } } }
Ampelokipoi, Thessaloniki Huacaybamba Hardenberg Kielce Woudrichem Bergen op Zoom Tarnów Panao San Antonio del Estrecho Querobamba Piotrków Trybunalski San Miguel de Pallaques Pińczów Wałbrzych Schagen Chavinillo Puerto Inca Oisterwijk Ouagadougou Leszno Wrocław Konin Steenbergen Kraków San José de Sisa Waalwijk Skierniewice Legnica Llata Goes Jelenia Góra
Kraków Wrocław Kielce
action greater
action find_tuple_counts
relation capital of
type human settlement
type second-level administrative country subdivision
action count
action filter_type
action find
entity Reșița
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?a ) WHERE { ?y property:capital_of ?b . ?y rdf:type ontology:human_settlement . ?b rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?y } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Reșița property:capital_of ?e . ?e rdf:type ontology:human_settlement } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1799
P276
Q131569
USER
What is situated at that human settlement ?
(c(Q131569),P276,Q1799)
action filter_type
action find_reverse
entity Q1799
relation P276
type Q131569
[{'concept': 'Q131569'}, 'P276', 'Q1799']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q131569 . ?f property:P276 resource:Q1799 }
Wrocław
action filter_type
action find_reverse
entity Wrocław
relation location
type treaty
[{'concept': 'treaty'}, 'location', 'Wrocław']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:treaty . ?f property:location resource:Wrocław }
[]
treaty
Clarification for simple ques.
Q31487
SYSTEM
Did you mean Kraków ?
Q31487 Q1799 Q102317
(c(Q131569),P276,Q31487) (c(Q131569),P276,Q1799) (c(Q131569),P276,Q102317)
[ANSWER]
[{'concept': 'Q131569'}, 'P276', 'Q31487'] [{'concept': 'Q131569'}, 'P276', 'Q1799'] [{'concept': 'Q131569'}, 'P276', 'Q102317']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q131569 . ?f property:P276 resource:Q1799 }
Kraków Wrocław Kielce
Did you mean Kraków ?
Kraków
[{'concept': 'treaty'}, 'location', 'Kraków'] [{'concept': 'treaty'}, 'location', 'Wrocław'] [{'concept': 'treaty'}, 'location', 'Kielce']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:treaty . ?f property:location resource:Wrocław }
[]
Simple Question (Coreferenced)
USER
No, I meant Wrocław. Could you tell me the answer for that?
(c(Q131569),P276,Q1799)
Q1799
[{'concept': 'Q131569'}, 'P276', 'Q1799']
[{'concept': 'treaty'}, 'location', 'Wrocław']
[]
Q700160
SYSTEM
Treaty of Breslau
Q700160
(c(Q131569),P276,Q1799)
action filter_type
action find_reverse
entity Q1799
relation P276
type Q131569
[ANSWER] is situated at that human settlement
[{'concept': 'Q131569'}, 'P276', 'Q1799']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q131569 . ?f property:P276 resource:Q1799 }
Treaty of Breslau
Treaty of Breslau is situated at that human settlement
Treaty of Breslau
action filter_type
action find_reverse
entity Wrocław
relation location
type treaty
[{'concept': 'treaty'}, 'location', 'Wrocław']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:treaty . ?f property:location resource:Wrocław }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q235
P1376
Q515 Q486972
USER
How many cities have greater number of human settlements as their county seat than Monaco ?
(c(Q486972),P1376,c(Q515))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
action count
action filter_type
action find
entity Q235
relation P1376
type Q515
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P1376 ?p . ?x rdf:type ontology:Q486972 . ?p rdf:type ontology:Q515 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { ?n rdf:type ontology:Q515 . resource:Q235 property:P1376 ?n } } . FILTER ( ?o > ?f ) }
Monaco
action count
action greater
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
action count
action filter_type
action find
entity Monaco
relation capital of
type city
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:capital_of ?p . ?x rdf:type ontology:human_settlement . ?p rdf:type ontology:city } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { ?n rdf:type ontology:city . resource:Monaco property:capital_of ?n } } . FILTER ( ?o > ?f ) }
[]
city human settlement
SYSTEM
218
Q280364 Q168921 Q837161 Q253825 Q507846 Q283862 Q850974 Q3846983 Q935834 Q765841 Q851056 Q292769 Q851409 Q775799 Q585548 Q777619 Q508313 Q328647 Q584825 Q248018 Q169127 Q850982 Q835227 Q639520 Q851037 Q331577 Q1018204 Q771191 Q325736 Q275645 Q275642 Q855187 Q325732 Q3573941 Q837167 Q2198771 Q803706 Q850962 Q276156 Q265012 Q850969 Q386945 Q794200 Q276164 Q923254 Q556266 Q666373 Q851042 Q732851 Q207196 Q851048 Q571769 Q276168 Q276152 Q226000 Q591285 Q751352 Q737830 Q169135 Q837968 Q10860283 Q221214 Q789811 Q276120 Q837960 Q778516 Q209782 Q641218 Q276004 Q592480 Q203929 Q930102 Q837170 Q596043 Q250006 Q829051 Q276042 Q521108 Q275810 Q275895 Q423441 Q899427 Q179297 Q737276 Q276119 Q837173 Q225257 Q1018184 Q373707 Q946893 Q518992 Q376233 Q660417 Q666521 Q851007 Q276336 Q325555 Q252061 Q963829 Q739444 Q586387 Q912204 Q750220 Q570113 Q916156 Q610341 Q593157 Q267708 Q899454 Q590443 Q548502 Q568376 Q186719 Q276083 Q75537 Q535516 Q508057 Q754721 Q839796 Q837157 Q837154 Q837152 Q748068 Q743752 Q736276 Q276135 Q276137 Q276132 Q197687 Q383306 Q253872 Q1209 Q217131 Q899448 Q275990 Q248959 Q511951 Q855719 Q576804 Q834101 Q935846 Q75504 Q313689 Q629776 Q899551 Q275981 Q651322 Q906711 Q276128 Q790338 Q186214 Q756585 Q851001 Q292759 Q375371 Q276127 Q912224 Q855721 Q276009 Q305001 Q305182 Q169064 Q772576 Q1017982 Q166829 Q926163 Q247807 Q589880 Q526019 Q167121 Q275997 Q548575 Q275910 Q678884 Q668701 Q584531 Q587746 Q383085 Q756593 Q756590 Q756596 Q851013 Q167792 Q19660 Q602184 Q899467 Q276154 Q423371 Q899461 Q209977 Q650981 Q764806 Q791387 Q756578 Q390156 Q851021 Q592497 Q727421 Q276117 Q533078 Q851029 Q225100 Q423414 Q596609 Q655818 Q386091 Q386888 Q275904 Q275890 Q508670 Q125604 Q1006796 Q679428 Q276145 Q276146 Q213296 Q276141 Q850992
(c(Q486972),P1376,c(Q515))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
action count
action filter_type
action find
entity Q235
relation P1376
type Q515
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P1376 ?p . ?x rdf:type ontology:Q486972 . ?p rdf:type ontology:Q515 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { ?n rdf:type ontology:Q515 . resource:Q235 property:P1376 ?n } } . FILTER ( ?o > ?f ) }
Titu Bragadiru Sânnicolau Mare Salcea Sebiș Băicoi Segarcea Șimleu Silvaniei Sângeorz-Băi Urlați Cristuru Secuiesc Întorsura Buzăului Budești Baia de Arieș Ocnele Mari Strehaia Nădlac Sulina Scornicești Isaccea Chitila Curtici Ineu Voluntari Comarnic Abrud Slănic Berești Ciacova Fierbinți-Târg Roznov Câmpeni Gătaia Săliște Hațeg Măgurele Baia Sprie Copșa Mică Berbești Bușteni Victoria Babadag Beclean Căzănești Fundulea Târgu Ocna Seini Hârlău Mioveni Zlatna Făget Boldești-Scăeni Pătârlagele Dragomirești Jimbolia Piatra-Olt Plopeni Mizil Pantelimon Băile Tușnad Broșteni Cugir Bălan Ulmeni Năvodari Baia de Aramă Borșa Videle Murgeni Târgu Bujor Zimnicea Tăuții-Măgherăuș Gura Humorului Ovidiu Slănic-Moldova Moldova Nouă Băneasa Dumbrăveni Cajvana Șomcuta Mare Țăndărei Iernut Nehoiu Cehu Silvaniei Liteni Cisnădie Rupea Cavnic Luduș Teiuș Călan Săcueni Jibou Târgu Cărbunești Deta Livada Recaș Valea lui Mihai Mihăilești Topoloveni Eforie Lehliu Gară Huedin Uricani Ghimbav Pogoanele Murfatlar Sovata Panciu Balș Anina Breaza Ocna Sibiului Potcoava Oțelu Roșu Azuga Drăgănești-Olt Corabia Borsec Covasna Simeria Ocna Mureș Hârșova Odobești Cernavodă Dăbuleni Milișăuți Pecica Miercurea Sibiului Tismana Bechet Free Hanseatic City of Bremen Buftea Negrești Răcari Zărnești Predeal Băile Govora Mărășești Bolintin-Vale Vlăhița Bocșa Agnita Vânju Mare Ianca Podu Iloaiei Năsăud Nucet Frasin Râșnov Turceni Buhuși Măcin Însurăței Călimănești Bălcești Techirghiol Băile Olănești Amara Negru Vodă Dărmănești Sângeorgiu de Pădure Negrești-Oaș Geoagiu Miercurea Nirajului Popești-Leordeni Săveni Pucioasa Brezoi Ungheni Ardud Aninoasa Sântana Fieni Tășnad Bumbești-Jiu Siret Oravița Târgu Neamț Comănești Filiași Vașcău Sărmașu Bucharest Solca Darabani Ștefănești Ștei Horezu Ștefănești Băile Herculane Rovinari Avrig Târgu Frumos Petrila Pâncota Vălenii de Munte Otopeni Dolhasca Baraolt Aleșd Bicaz Țicleni Vișeu de Sus Buziaș Novaci Târgu Lăpuș Flămânzi Băbeni Chișineu-Criș Găești Făurei Tălmaciu Vicovu de Sus Bucecea Sinaia Săliștea de Sus Costești
218
action count
action greater
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
action count
action filter_type
action find
entity Monaco
relation capital of
type city
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:capital_of ?p . ?x rdf:type ontology:human_settlement . ?p rdf:type ontology:city } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { ?n rdf:type ontology:city . resource:Monaco property:capital_of ?n } } . FILTER ( ?o > ?f ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P609
Q486972 Q12280 Q34442
USER
Which human settlements are the terminus locations of approximately 1 bridges or roads ?
(c(Q12280)|c(Q34442),P609,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q486972
type Q12280
action find_reverse_tuple_counts
relation P609
type Q486972
type Q34442
value 1
[[{'concept': 'Q12280'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q486972'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?g ) WHERE { { ?a rdf:type ontology:Q486972 . ?l rdf:type ontology:Q12280 . ?l property:P609 ?a } UNION { ?l property:P609 ?a . ?a rdf:type ontology:Q486972 . ?l rdf:type ontology:Q34442 } } GROUP BY ?a } . FILTER ( ?g = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type human settlement
type bridge
action find_reverse_tuple_counts
relation terminus location
type human settlement
type road
value 1
[[{'concept': 'bridge'}, {'concept': 'road'}], 'terminus location', {'concept': 'human settlement'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?g ) WHERE { { ?a rdf:type ontology:human_settlement . ?l rdf:type ontology:bridge . ?l property:terminus_location ?a } UNION { ?l property:terminus_location ?a . ?a rdf:type ontology:human_settlement . ?l rdf:type ontology:road } } GROUP BY ?a } . FILTER ( ?g = 1 ) }
[]
human settlement bridge road
Q192508 Q9879 Q3126518
SYSTEM
Bergen op Zoom, Waalwijk, Hammarby Sjöstad
Q81186 Q9879 Q81159 Q3303930 Q81100 Q12344051 Q14389109 Q2616736 Q4736244 Q192508 Q2473420 Q3126518
(c(Q12280)|c(Q34442),P609,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q486972
type Q12280
action find_reverse_tuple_counts
relation P609
type Q486972
type Q34442
value 1
[ANSWERS] are the terminus locations of approximately 1 bridges or roads
[[{'concept': 'Q12280'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q486972'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?g ) WHERE { { ?a rdf:type ontology:Q486972 . ?l rdf:type ontology:Q12280 . ?l property:P609 ?a } UNION { ?l property:P609 ?a . ?a rdf:type ontology:Q486972 . ?l rdf:type ontology:Q34442 } } GROUP BY ?a } . FILTER ( ?g = 1 ) }
Genemuiden Waalwijk Hasselt Medemblik Hulst Weert Steenbergen Sint Anna ter Muiden Zwolle-Zuid Bergen op Zoom Echt, Netherlands Hammarby Sjöstad
Bergen op Zoom, Waalwijk and Hammarby Sjöstad are the terminus locations of approximately 1 bridges or roads
Bergen op Zoom Waalwijk Hammarby Sjöstad
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type human settlement
type bridge
action find_reverse_tuple_counts
relation terminus location
type human settlement
type road
value 1
[[{'concept': 'bridge'}, {'concept': 'road'}], 'terminus location', {'concept': 'human settlement'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?g ) WHERE { { ?a rdf:type ontology:human_settlement . ?l rdf:type ontology:bridge . ?l property:terminus_location ?a } UNION { ?l property:terminus_location ?a . ?a rdf:type ontology:human_settlement . ?l rdf:type ontology:road } } GROUP BY ?a } . FILTER ( ?g = 1 ) }
[]