Simple Question (Direct)
Simple Question
Q2417615
P102
Q7210356
USER
Which political organization is Theodor Gabriel a member of ?
(Q2417615,P102,c(Q7210356))
action filter_type
action find
entity Q2417615
relation P102
type Q7210356
['Q2417615', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q2417615 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Theodor Gabriel
action filter_type
action find
entity Theodor Gabriel
relation member of political party
type political organization
['Theodor Gabriel', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Theodor_Gabriel property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q659461
SYSTEM
Christian Democratic People's Party of Switzerland
Q659461
(Q2417615,P102,c(Q7210356))
action filter_type
action find
entity Q2417615
relation P102
type Q7210356
The [ANSWER] is Theodor Gabriel a member of
['Q2417615', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q2417615 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Christian Democratic People's Party of Switzerland
The Christian Democratic People's Party of Switzerland is Theodor Gabriel a member of
Christian Democratic People's Party of Switzerland
action filter_type
action find
entity Theodor Gabriel
relation member of political party
type political organization
['Theodor Gabriel', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Theodor_Gabriel property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2417615
P19
Q13220204
USER
Which administrative country subdivision is the birthplace of Theodor Gabriel ?
(Q2417615,P19,c(Q13220204))
action filter_type
action find
entity Q2417615
relation P19
type Q13220204
['Q2417615', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?u WHERE { resource:Q2417615 property:P19 ?u . ?u rdf:type ontology:Q13220204 }
Theodor Gabriel
action filter_type
action find
entity Theodor Gabriel
relation place of birth
type second-level administrative country subdivision
['Theodor Gabriel', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?u WHERE { resource:Theodor_Gabriel property:place_of_birth ?u . ?u rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q64310
SYSTEM
Ennetbürgen
Q64310
(Q2417615,P19,c(Q13220204))
action filter_type
action find
entity Q2417615
relation P19
type Q13220204
[ANSWER] is the birthplace of Theodor Gabriel
['Q2417615', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?u WHERE { resource:Q2417615 property:P19 ?u . ?u rdf:type ontology:Q13220204 }
Ennetbürgen
Ennetbürgen is the birthplace of Theodor Gabriel
Ennetbürgen
action filter_type
action find
entity Theodor Gabriel
relation place of birth
type second-level administrative country subdivision
['Theodor Gabriel', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?u WHERE { resource:Theodor_Gabriel property:place_of_birth ?u . ?u rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1706947
Q13220204
USER
And how about Joseph Ettedgui?
(Q1706947,P19,c(Q13220204))
action filter_type
action find
entity Q1706947
relation P19
type Q13220204
['Q1706947', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q13220204 . resource:Q1706947 property:P19 ?s }
Joseph Ettedgui
action filter_type
action find
entity Joseph Ettedgui
relation place of birth
type second-level administrative country subdivision
['Joseph Ettedgui', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:second-level_administrative_country_subdivision . resource:Joseph_Ettedgui property:place_of_birth ?s }
[]
second-level administrative country subdivision
Q7903
SYSTEM
Casablanca
Q7903
(Q1706947,P19,c(Q13220204))
action filter_type
action find
entity Q1706947
relation P19
type Q13220204
[ANSWER]
['Q1706947', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q13220204 . resource:Q1706947 property:P19 ?s }
Casablanca
Casablanca
action filter_type
action find
entity Joseph Ettedgui
relation place of birth
type second-level administrative country subdivision
['Joseph Ettedgui', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:second-level_administrative_country_subdivision . resource:Joseph_Ettedgui property:place_of_birth ?s }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P138
Q13220204 Q34442 Q16521
USER
Which administrative country subdivisions are the etymology of around the same number of roads or taxons as that administrative country subdivision ?
(c(Q34442)|c(Q16521),P138,c(Q13220204))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q13220204
type Q34442
action find_reverse_tuple_counts
relation P138
type Q13220204
type Q16521
action count
action filter_multi_types
action find_reverse
entity Q7903
relation P138
type Q34442
type Q16521
[[{'concept': 'Q34442'}, {'concept': 'Q16521'}], 'P138', {'concept': 'Q13220204'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:P138 resource:Q7903 . { { ?t rdf:type ontology:Q16521 } UNION { ?t rdf:type ontology:Q34442 } } } } . FILTER ( ?q = ?u ) . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:P138 ?z . ?z rdf:type ontology:Q13220204 . ?k rdf:type ontology:Q34442 } UNION { ?k property:P138 ?z . ?z rdf:type ontology:Q13220204 . ?k rdf:type ontology:Q16521 } } GROUP BY ?z } }
action approx
action union
action find_reverse_tuple_counts
relation named after
type second-level administrative country subdivision
type road
action find_reverse_tuple_counts
relation named after
type second-level administrative country subdivision
type taxon
action count
action filter_multi_types
action find_reverse
entity Casablanca
relation named after
type road
type taxon
[[{'concept': 'road'}, {'concept': 'taxon'}], 'named after', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:named_after resource:Casablanca . { { ?t rdf:type ontology:taxon } UNION { ?t rdf:type ontology:road } } } } . FILTER ( ?q = ?u ) . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:named_after ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision . ?k rdf:type ontology:road } UNION { ?k property:named_after ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision . ?k rdf:type ontology:taxon } } GROUP BY ?z } }
[]
second-level administrative country subdivision road taxon
Q9966 Q1435 Q10018
SYSTEM
Texel, Zagreb, Ommen
Q65620 Q476268 Q211260 Q68256 Q68440 Q15179893 Q10003 Q913445 Q65903 Q82142 Q14523654 Q9913 Q67720 Q476658 Q1663 Q476511 Q9980 Q388575 Q706857 Q65249 Q952457 Q869523 Q475929 Q69606 Q10018 Q63992 Q328087 Q67613 Q9905 Q701978 Q9949 Q475381 Q46001 Q208012 Q158053 Q65254 Q476463 Q64776 Q9932 Q68703 Q9938 Q66922 Q65826 Q67367 Q921283 Q65268 Q64178 Q110848 Q68796 Q475826 Q68097 Q68269 Q9928 Q9880 Q70095 Q9858 Q68986 Q191082 Q156743 Q9808 Q149024 Q659665 Q70334 Q995152 Q11939 Q734860 Q48687 Q69627 Q69503 Q67993 Q68165 Q9954 Q1367576 Q10044 Q2583056 Q66577 Q67646 Q5765 Q462663 Q9796 Q201304 Q68283 Q68286 Q108966 Q67157 Q66012 Q69532 Q1596330 Q476097 Q64191 Q231352 Q7903 Q64292 Q208259 Q70432 Q7151 Q65291 Q43595 Q10056 Q10055 Q10052 Q9948 Q10050 Q65112 Q62266 Q64200 Q1435 Q476385 Q39383 Q1577621 Q69296 Q9970 Q4191 Q70194 Q67135 Q1647 Q64853 Q10039 Q538725 Q1129 Q9966 Q2841 Q848831
(c(Q34442)|c(Q16521),P138,c(Q13220204))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q13220204
type Q34442
action find_reverse_tuple_counts
relation P138
type Q13220204
type Q16521
action count
action filter_multi_types
action find_reverse
entity Q7903
relation P138
type Q34442
type Q16521
[ANSWERS] are the etymology of around the same number of roads or taxons as that administrative country subdivision
[[{'concept': 'Q34442'}, {'concept': 'Q16521'}], 'P138', {'concept': 'Q13220204'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:P138 resource:Q7903 . { { ?t rdf:type ontology:Q16521 } UNION { ?t rdf:type ontology:Q34442 } } } } . FILTER ( ?q = ?u ) . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:P138 ?z . ?z rdf:type ontology:Q13220204 . ?k rdf:type ontology:Q34442 } UNION { ?k property:P138 ?z . ?z rdf:type ontology:Q13220204 . ?k rdf:type ontology:Q16521 } } GROUP BY ?z } }
Tuggen Nong Na Kham Zaandam Porrentruy Rickenbach An Khê Haaksbergen Si Racha Lauenen Granada Province Ko Samui Diemen Randa Sattahip Split Pluak Daeng Zandvoort Leerdam Bakhmut Uebeschi Nizhyn Vogorno Mae Chan Laax Ommen Ascona Dronten Wohlen bei Bern Beverwijk arrondissement of Nontron Naarden Chiang Dao Alushta Hoogeveen Sorokyne Silvaplana Phrom Buri Amsoldingen Heiloo Les Brenets Hoorn Ependes Hüttwilen Niederried bei Kallnach Santa Fe de Nuevo México Brienz Maienfeld Ringerike Muzzano Kranuan Davos Pfäffikon Heemstede Werkendam Courroux Oosterhout St. Moritz Aegina Ternopil Aalburg Novohrad-Volynskyi Salacgrīva Origlio Kakhovka Stein am Rhein Capelle aan den IJssel Tjøme Lauerz Poschiavo Bonfol Kloten Purmerend Vrouwenpolder Houten Kijfhoek Seewen Inkwil Balearic Islands Brielle Kerkrade Colchagua Province Murten Horgen Mandal Moutier Sufers Chermignon Heinkenszand Mueang Surat Thani Walenstadt Zvezdara Casablanca Lungern Ameland Hauterive Sempach Hallwil Cotonou Zeist Woudenberg Vianen Muiden Nieuwegein Marmorera Ålesund Sils im Engadin/Segl Zagreb Phatthana Nikhom Bodø Gachalá Alpnach Velsen Lucerne Valangin Klingnau Rijeka Wiesendangen Renswoude Hendrik-Ido-Ambacht Hainaut Texel Bogotá Province of Brabant
Texel, Zagreb and Ommen are the etymology of around the same number of roads or taxons as that administrative country subdivision
Texel Zagreb Ommen
action approx
action union
action find_reverse_tuple_counts
relation named after
type second-level administrative country subdivision
type road
action find_reverse_tuple_counts
relation named after
type second-level administrative country subdivision
type taxon
action count
action filter_multi_types
action find_reverse
entity Casablanca
relation named after
type road
type taxon
[[{'concept': 'road'}, {'concept': 'taxon'}], 'named after', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:named_after resource:Casablanca . { { ?t rdf:type ontology:taxon } UNION { ?t rdf:type ontology:road } } } } . FILTER ( ?q = ?u ) . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:named_after ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision . ?k rdf:type ontology:road } UNION { ?k property:named_after ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision . ?k rdf:type ontology:taxon } } GROUP BY ?z } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q503991 Q9966
P138
Q34442
USER
Which roads are named after Texel or Duke Henry of Mecklenburg-Schwerin ?
OR((c(Q34442),P138,Q9966), (c(Q34442),P138,Q503991))
action filter_type
action union
action find_reverse
entity Q9966
relation P138
action find_reverse
entity Q503991
relation P138
type Q34442
{'OR': [[{'concept': 'Q34442'}, 'P138', 'Q9966'], [{'concept': 'Q34442'}, 'P138', 'Q503991']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q34442 . { { ?p property:P138 resource:Q503991 } UNION { ?p property:P138 resource:Q9966 } } }
Duke Henry of Mecklenburg-Schwerin Texel
action filter_type
action union
action find_reverse
entity Texel
relation named after
action find_reverse
entity Duke Henry of Mecklenburg-Schwerin
relation named after
type road
{'OR': [[{'concept': 'road'}, 'named after', 'Texel'], [{'concept': 'road'}, 'named after', 'Duke Henry of Mecklenburg-Schwerin']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:road . { { ?p property:named_after resource:Duke_Henry_of_Mecklenburg-Schwerin } UNION { ?p property:named_after resource:Texel } } }
[]
road
Q19430298 Q19430281 Q19430391 Q19430328 Q19430441 Q19430430 Q19430334 Q19430385 Q19430253 Q19430273
SYSTEM
Some of them are Prins Hendriklaan, Prins Hendriklaan, Prins Hendrikstraat, Prins Hendrikstraat, Prins Hendrikweg, Prins Hendrikstraat, Prins Hendrikstraat, Prins Hendrikstraat, Prins Hendrikkade, Prins Hendriklaan
Q19430401 Q3452612 Q19430421 Q19430355 Q19430354 Q19430357 Q19430356 Q19430351 Q19430350 Q19430353 Q19430352 Q19430450 Q19430451 Q19430359 Q19430358 Q19430424 Q2523560 Q19430323 Q19430270 Q19430271 Q19430346 Q19430347 Q19430344 Q19430345 Q19430342 Q19430340 Q19430341 Q19430348 Q19430349 Q19430278 Q19430379 Q19430378 Q19430373 Q19430372 Q19430371 Q19430370 Q19430377 Q19430376 Q19430375 Q19430374 Q19430289 Q19430288 Q19430283 Q19430282 Q19430281 Q19430280 Q19430287 Q19430285 Q19430284 Q19430319 Q19430260 Q15876285 Q19430414 Q19430415 Q19430368 Q19430369 Q19430364 Q2122164 Q19430366 Q19430367 Q19430360 Q19430361 Q19430362 Q19430264 Q19430405 Q19430404 Q19430407 Q19430406 Q19430298 Q19430299 Q19430403 Q19430402 Q19430294 Q19430295 Q19430296 Q19430297 Q19430409 Q19430291 Q19430292 Q19430293 Q19430269 Q19430268 Q19430380 Q19430391 Q19430390 Q19430393 Q19430392 Q19430395 Q19430394 Q19430397 Q19430396 Q19430399 Q19430398 Q19430419 Q19430261 Q19430416 Q19430417 Q19430263 Q19430262 Q19430412 Q19430413 Q19430410 Q19430411 Q19430311 Q19430310 Q19430313 Q19430312 Q19430314 Q19430317 Q19430316 Q19430420 Q19430363 Q19430320 Q19430321 Q19430318 Q19430382 Q19430383 Q19430429 Q19430428 Q19430386 Q19430387 Q19430384 Q19430385 Q19430423 Q19430422 Q19430388 Q19430389 Q19430427 Q19430426 Q19430425 Q19430400 Q19430272 Q19430273 Q19430308 Q19430309 Q19430276 Q19430277 Q19430274 Q19430275 Q19430302 Q19430303 Q19430300 Q19430279 Q19430306 Q19430307 Q19430304 Q19430305 Q19430328 Q19430329 Q19430290 Q19430408 Q19430438 Q19430439 Q19430265 Q19430434 Q19430435 Q19430436 Q19430437 Q19430430 Q19430431 Q19430432 Q19430433 Q19430338 Q19430337 Q19430336 Q19430335 Q19430334 Q19430333 Q19430332 Q19430331 Q19430330 Q19430258 Q19430259 Q19430365 Q19430267 Q19430250 Q19430251 Q19430252 Q19430253 Q19430254 Q19430255 Q19430256 Q19430257 Q19430449 Q19430448 Q19430322 Q19430418 Q19430324 Q19430325 Q19430326 Q19430327 Q19430441 Q19430440 Q19430443 Q19430442 Q19430445 Q19430444 Q19430447 Q19430446 Q19430381
OR((c(Q34442),P138,Q9966), (c(Q34442),P138,Q503991))
action filter_type
action union
action find_reverse
entity Q9966
relation P138
action find_reverse
entity Q503991
relation P138
type Q34442
In [ANSWERS] are named after Texel or Duke Henry of Mecklenburg-Schwerin
{'OR': [[{'concept': 'Q34442'}, 'P138', 'Q9966'], [{'concept': 'Q34442'}, 'P138', 'Q503991']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q34442 . { { ?p property:P138 resource:Q503991 } UNION { ?p property:P138 resource:Q9966 } } }
Prins Hendrikstraat rue du Texel Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikweg Prins Hendrikweg Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendriklaan Prins Hendrikstraat Prins Hendriklaan Prins Hendriklaan Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendriklaan Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendrikplein Prins Hendrikkade Hertog Hendriklaan (Baarn) Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikkade Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendriklaan Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendriklaan Prins Hendriklaan Prins Hendrikstraat Prins Hendrikstraat Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendrikstraat Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendriklaan Prins Hendrikstraat Prins Hendrikstraat Prins Hendriklaan Prins Hendriklaan Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikpark Prins Hendriklaan Prins Hendrikplantsoen Prins Hendrikplantsoen Prins Hendrikplein Prins Hendrikplein Prins Hendrikplein Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikplein Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendriklaan Prins Hendrikstraat Prins Hendrikstraat Prins Hendriklaan Prins Hendrikstraat Prins Hendrikweg Prins Hendrikweg Prins Hendriklaan Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikkade Prins Hendrikkade Prins Hendrikstraat Prins Hendriklaan Prins Hendrikerf Prins Hendrikkade Prins Hendrikkade Prins Hendrikkade Prins Hendrikkade Prins Hendrikkade Prins Hendrikkade Prins Hendrikkade Prins Hendrikweg Prins Hendrikweg Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikweg Prins Hendrikweg Prins Hendrikweg Prins Hendrikweg Prins Hendrikweg Prins Hendrikweg Prins Hendrikweg Prins Hendrikweg Prins Hendrikstraat
In Prins Hendriklaan, Prins Hendriklaan, Prins Hendrikstraat, Prins Hendrikstraat, Prins Hendrikweg, Prins Hendrikstraat, Prins Hendrikstraat, Prins Hendrikstraat, Prins Hendrikkade and Prins Hendriklaan are named after Texel or Duke Henry of Mecklenburg-Schwerin
Prins Hendriklaan Prins Hendriklaan Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikweg Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikstraat Prins Hendrikkade Prins Hendriklaan
action filter_type
action union
action find_reverse
entity Texel
relation named after
action find_reverse
entity Duke Henry of Mecklenburg-Schwerin
relation named after
type road
{'OR': [[{'concept': 'road'}, 'named after', 'Texel'], [{'concept': 'road'}, 'named after', 'Duke Henry of Mecklenburg-Schwerin']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:road . { { ?p property:named_after resource:Duke_Henry_of_Mecklenburg-Schwerin } UNION { ?p property:named_after resource:Texel } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q10548447
P559
Q811979 Q34442
USER
Which architectural structures are the endpoints for more number of roads than Krafts torg ?
(c(Q34442),P559,c(Q811979))
action greater
action find_reverse_tuple_counts
relation P559
type Q811979
type Q34442
action count
action filter_type
action find
entity Q10548447
relation P559
type Q811979
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q811979'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?o ) WHERE { ?r rdf:type ontology:Q811979 . ?y rdf:type ontology:Q34442 . ?y property:P559 ?r } GROUP BY ?r } . FILTER ( ?o > ?d ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Q10548447 property:P559 ?t . ?t rdf:type ontology:Q811979 } } }
Krafts torg
action greater
action find_reverse_tuple_counts
relation terminus
type architectural structure
type road
action count
action filter_type
action find
entity Krafts torg
relation terminus
type architectural structure
[{'concept': 'road'}, 'terminus', {'concept': 'architectural structure'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?o ) WHERE { ?r rdf:type ontology:architectural_structure . ?y rdf:type ontology:road . ?y property:terminus ?r } GROUP BY ?r } . FILTER ( ?o > ?d ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Krafts_torg property:terminus ?t . ?t rdf:type ontology:architectural_structure } } }
[]
architectural structure road
Q4566667 Q6432431 Q3433033
SYSTEM
Järntorget, Kornhamnstorg, Mynttorget
Q4566667 Q10510066 Q3048023 Q15804563 Q10661494 Q844426 Q892745 Q1957616 Q6432431 Q10436362 Q10614866 Q716848 Q3433033 Q1589941 Q6444561 Q7107042 Q10681418 Q1959174 Q3359396
(c(Q34442),P559,c(Q811979))
action greater
action find_reverse_tuple_counts
relation P559
type Q811979
type Q34442
action count
action filter_type
action find
entity Q10548447
relation P559
type Q811979
[ANSWERS] are the endpoints for more number of roads than Krafts torg
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q811979'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?o ) WHERE { ?r rdf:type ontology:Q811979 . ?y rdf:type ontology:Q34442 . ?y property:P559 ?r } GROUP BY ?r } . FILTER ( ?o > ?d ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Q10548447 property:P559 ?t . ?t rdf:type ontology:Q811979 } } }
Järntorget Grönsakstorget Stortorget Martinsplatz Sankt Sigfrids plan Sergels torg Markt Mårtenstorget Kornhamnstorg Brunkebergstorg Packhusplatsen Nybroplan Mynttorget Kongens Nytorv Kungsportsplatsen Oslo Plads Stortorget Münsterplatz Søtorvet
Järntorget, Kornhamnstorg and Mynttorget are the endpoints for more number of roads than Krafts torg
Järntorget Kornhamnstorg Mynttorget
action greater
action find_reverse_tuple_counts
relation terminus
type architectural structure
type road
action count
action filter_type
action find
entity Krafts torg
relation terminus
type architectural structure
[{'concept': 'road'}, 'terminus', {'concept': 'architectural structure'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?o ) WHERE { ?r rdf:type ontology:architectural_structure . ?y rdf:type ontology:road . ?y property:terminus ?r } GROUP BY ?r } . FILTER ( ?o > ?d ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Krafts_torg property:terminus ?t . ?t rdf:type ontology:architectural_structure } } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q18957428 Q19430298
P17
Q15617994
USER
Which administrative territories are Prins Hendriklaan and Blijhamsterstraat located in ?
AND((Q19430298,P17,c(Q15617994)), (Q18957428,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q19430298
relation P17
action find
entity Q18957428
relation P17
type Q15617994
{'AND': [['Q19430298', 'P17', {'concept': 'Q15617994'}], ['Q18957428', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q19430298 property:P17 ?b . resource:Q18957428 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Blijhamsterstraat Prins Hendriklaan
action filter_type
action intersection
action find
entity Prins Hendriklaan
relation country
action find
entity Blijhamsterstraat
relation country
type designation for an administrative territorial entity
{'AND': [['Prins Hendriklaan', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Blijhamsterstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Prins_Hendriklaan property:country ?b . resource:Blijhamsterstraat property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
AND((Q19430298,P17,c(Q15617994)), (Q18957428,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q19430298
relation P17
action find
entity Q18957428
relation P17
type Q15617994
Prins Hendriklaan and Blijhamsterstraat are located in [ANSWER]
{'AND': [['Q19430298', 'P17', {'concept': 'Q15617994'}], ['Q18957428', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q19430298 property:P17 ?b . resource:Q18957428 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Netherlands
Prins Hendriklaan and Blijhamsterstraat are located in Netherlands
Netherlands
action filter_type
action intersection
action find
entity Prins Hendriklaan
relation country
action find
entity Blijhamsterstraat
relation country
type designation for an administrative territorial entity
{'AND': [['Prins Hendriklaan', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Blijhamsterstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Prins_Hendriklaan property:country ?b . resource:Blijhamsterstraat property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]