Simple Question (Direct)
Simple Question
Q2033222
P641
Q349
USER
Which sport was Serhiy Mizin a part of ?
(Q2033222,P641,c(Q349))
action filter_type
action find
entity Q2033222
relation P641
type Q349
['Q2033222', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q2033222 property:P641 ?y . ?y rdf:type ontology:Q349 }
Serhiy Mizin
action filter_type
action find
entity Serhiy Mizin
relation sport
type sport
['Serhiy Mizin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Serhiy_Mizin property:sport ?y . ?y rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q2033222,P641,c(Q349))
action filter_type
action find
entity Q2033222
relation P641
type Q349
The [ANSWER] was Serhiy Mizin a part of
['Q2033222', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q2033222 property:P641 ?y . ?y rdf:type ontology:Q349 }
association football
The association football was Serhiy Mizin a part of
association football
action filter_type
action find
entity Serhiy Mizin
relation sport
type sport
['Serhiy Mizin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Serhiy_Mizin property:sport ?y . ?y rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2033222
P54
Q1194951
USER
Which national sports team is Serhiy Mizin a member of ?
(Q2033222,P54,c(Q1194951))
action filter_type
action find
entity Q2033222
relation P54
type Q1194951
['Q2033222', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { resource:Q2033222 property:P54 ?v . ?v rdf:type ontology:Q1194951 }
Serhiy Mizin
action filter_type
action find
entity Serhiy Mizin
relation member of sports team
type national sports team
['Serhiy Mizin', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { resource:Serhiy_Mizin property:member_of_sports_team ?v . ?v rdf:type ontology:national_sports_team }
[]
national sports team
Q170403
SYSTEM
Ukraine national football team
Q170403
(Q2033222,P54,c(Q1194951))
action filter_type
action find
entity Q2033222
relation P54
type Q1194951
The [ANSWER] is Serhiy Mizin a member of
['Q2033222', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { resource:Q2033222 property:P54 ?v . ?v rdf:type ontology:Q1194951 }
Ukraine national football team
The Ukraine national football team is Serhiy Mizin a member of
Ukraine national football team
action filter_type
action find
entity Serhiy Mizin
relation member of sports team
type national sports team
['Serhiy Mizin', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { resource:Serhiy_Mizin property:member_of_sports_team ?v . ?v rdf:type ontology:national_sports_team }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3830409
Q1194951
USER
And also tell me about Leonardo Morales?
(Q3830409,P54,c(Q1194951))
action filter_type
action find
entity Q3830409
relation P54
type Q1194951
['Q3830409', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?p WHERE { resource:Q3830409 property:P54 ?p . ?p rdf:type ontology:Q1194951 }
Leonardo Morales
action filter_type
action find
entity Leonardo Morales
relation member of sports team
type national sports team
['Leonardo Morales', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?p WHERE { resource:Leonardo_Morales property:member_of_sports_team ?p . ?p rdf:type ontology:national_sports_team }
[]
national sports team
Q180187
SYSTEM
Honduras national football team
Q180187
(Q3830409,P54,c(Q1194951))
action filter_type
action find
entity Q3830409
relation P54
type Q1194951
[ANSWER]
['Q3830409', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?p WHERE { resource:Q3830409 property:P54 ?p . ?p rdf:type ontology:Q1194951 }
Honduras national football team
Honduras national football team
action filter_type
action find
entity Leonardo Morales
relation member of sports team
type national sports team
['Leonardo Morales', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?p WHERE { resource:Leonardo_Morales property:member_of_sports_team ?p . ?p rdf:type ontology:national_sports_team }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3830409 Q34359
P106
Q12737077
USER
How many occupations have Leonardo Morales or Doctor as his/her as a career ?
(Q3830409,P106,c(Q12737077)) (Q34359,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q3830409
relation P106
type Q12737077
action filter_type
action find
entity Q34359
relation P106
type Q12737077
['Q3830409', 'P106', {'concept': 'Q12737077'}] ['Q34359', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { resource:Q34359 property:P106 ?j . ?j rdf:type ontology:Q12737077 } UNION { resource:Q3830409 property:P106 ?j . ?j rdf:type ontology:Q12737077 } }
Leonardo Morales Doctor
action count
action union
action filter_type
action find
entity Leonardo Morales
relation occupation
type occupation
action filter_type
action find
entity Doctor
relation occupation
type occupation
['Leonardo Morales', 'occupation', {'concept': 'occupation'}] ['Doctor', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { resource:Doctor property:occupation ?j . ?j rdf:type ontology:occupation } UNION { resource:Leonardo_Morales property:occupation ?j . ?j rdf:type ontology:occupation } }
[]
occupation
SYSTEM
3
Q39631 Q628099 Q937857
(Q3830409,P106,c(Q12737077)) (Q34359,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q3830409
relation P106
type Q12737077
action filter_type
action find
entity Q34359
relation P106
type Q12737077
[ANSWER]
['Q3830409', 'P106', {'concept': 'Q12737077'}] ['Q34359', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { resource:Q34359 property:P106 ?j . ?j rdf:type ontology:Q12737077 } UNION { resource:Q3830409 property:P106 ?j . ?j rdf:type ontology:Q12737077 } }
physician association football manager association football player
3
action count
action union
action filter_type
action find
entity Leonardo Morales
relation occupation
type occupation
action filter_type
action find
entity Doctor
relation occupation
type occupation
['Leonardo Morales', 'occupation', {'concept': 'occupation'}] ['Doctor', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { resource:Doctor property:occupation ?j . ?j rdf:type ontology:occupation } UNION { resource:Leonardo_Morales property:occupation ?j . ?j rdf:type ontology:occupation } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3830409
P19
Q56061
USER
Which administrative territory was Leonardo Morales born at ?
(Q3830409,P19,c(Q56061))
action filter_type
action find
entity Q3830409
relation P19
type Q56061
['Q3830409', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q3830409 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Leonardo Morales
action filter_type
action find
entity Leonardo Morales
relation place of birth
type administrative territorial entity
['Leonardo Morales', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Leonardo_Morales property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q958080
SYSTEM
Santa Rosa de Aguán
Q958080
(Q3830409,P19,c(Q56061))
action filter_type
action find
entity Q3830409
relation P19
type Q56061
Leonardo Morales was born in [ANSWER]
['Q3830409', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q3830409 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Santa Rosa de Aguán
Leonardo Morales was born in Santa Rosa de Aguán
Santa Rosa de Aguán
action filter_type
action find
entity Leonardo Morales
relation place of birth
type administrative territorial entity
['Leonardo Morales', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Leonardo_Morales property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q954475
Q56061
USER
And what about Waldir Peres?
(Q954475,P19,c(Q56061))
action filter_type
action find
entity Q954475
relation P19
type Q56061
['Q954475', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q954475 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Waldir Peres
action filter_type
action find
entity Waldir Peres
relation place of birth
type administrative territorial entity
['Waldir Peres', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Waldir_Peres property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q940614
SYSTEM
Garça
Q940614
(Q954475,P19,c(Q56061))
action filter_type
action find
entity Q954475
relation P19
type Q56061
[ANSWER]
['Q954475', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q954475 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Garça
Garça
action filter_type
action find
entity Waldir Peres
relation place of birth
type administrative territorial entity
['Waldir Peres', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Waldir_Peres property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2834918 Q2033222
P19
Q515
USER
Which cities are the places of birth of Serhiy Mizin or Alfred-Louis-Dominique Richet ?
OR((Q2033222,P19,c(Q515)), (Q2834918,P19,c(Q515)))
action filter_type
action union
action find
entity Q2033222
relation P19
action find
entity Q2834918
relation P19
type Q515
{'OR': [['Q2033222', 'P19', {'concept': 'Q515'}], ['Q2834918', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?a WHERE { { ?q property:P19 ?a . VALUES ( ?q ) { ( resource:Q2033222 ) ( resource:Q2834918 ) } } . ?a rdf:type ontology:Q515 }
Alfred-Louis-Dominique Richet Serhiy Mizin
action filter_type
action union
action find
entity Serhiy Mizin
relation place of birth
action find
entity Alfred-Louis-Dominique Richet
relation place of birth
type city
{'OR': [['Serhiy Mizin', 'place of birth', {'concept': 'city'}], ['Alfred-Louis-Dominique Richet', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?a WHERE { { ?q property:place_of_birth ?a . VALUES ( ?q ) { ( resource:Serhiy_Mizin ) ( resource:Alfred-Louis-Dominique_Richet ) } } . ?a rdf:type ontology:city }
[]
city
Q7003 Q1899
SYSTEM
Dijon, Kyiv
Q7003 Q1899
OR((Q2033222,P19,c(Q515)), (Q2834918,P19,c(Q515)))
action filter_type
action union
action find
entity Q2033222
relation P19
action find
entity Q2834918
relation P19
type Q515
[ANSWERS] are the places of birth of Serhiy Mizin or Alfred-Louis-Dominique Richet
{'OR': [['Q2033222', 'P19', {'concept': 'Q515'}], ['Q2834918', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?a WHERE { { ?q property:P19 ?a . VALUES ( ?q ) { ( resource:Q2033222 ) ( resource:Q2834918 ) } } . ?a rdf:type ontology:Q515 }
Dijon Kyiv
Dijon and Kyiv are the places of birth of Serhiy Mizin or Alfred-Louis-Dominique Richet
Dijon Kyiv
action filter_type
action union
action find
entity Serhiy Mizin
relation place of birth
action find
entity Alfred-Louis-Dominique Richet
relation place of birth
type city
{'OR': [['Serhiy Mizin', 'place of birth', {'concept': 'city'}], ['Alfred-Louis-Dominique Richet', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?a WHERE { { ?q property:place_of_birth ?a . VALUES ( ?q ) { ( resource:Serhiy_Mizin ) ( resource:Alfred-Louis-Dominique_Richet ) } } . ?a rdf:type ontology:city }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P206
Q15324 Q355304 Q515
USER
Which cities are located in the neighbourhood of approximately the same number of bodies of water or watercourses as that city ?
(c(Q515),P206,c(Q15324)|c(Q355304))
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?z WHERE { { ?z property:P206 ?m . VALUES ( ?m ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15324 . ?x rdf:type ontology:Q355304 }
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?z WHERE { { ?z property:located_next_to_body_of_water ?m . VALUES ( ?m ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:city . ?y rdf:type ontology:body_of_water . ?x rdf:type ontology:watercourse }
[]
body of water watercourse city
Comparative|More/Less|Mult. entity type|Clarification
Q7003
SYSTEM
Did you mean Dijon ?
(c(Q515),P206,c(Q15324)|c(Q355304))
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?z WHERE { { ?z property:P206 ?m . VALUES ( ?m ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15324 . ?x rdf:type ontology:Q355304 }
Did you mean Dijon ?
Dijon
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?z WHERE { { ?z property:located_next_to_body_of_water ?m . VALUES ( ?m ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:city . ?y rdf:type ontology:body_of_water . ?x rdf:type ontology:watercourse }
[]
Comparative Reasoning (All)
USER
No, I meant Kyiv. Could you tell me the answer for that?
(c(Q515),P206,c(Q15324)|c(Q355304))
Q1899
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
[]
SYSTEM
87
Q1410 Q1794 Q1863 Q1865 Q1519 Q496499 Q3974 Q846877 Q19689 Q1486 Q2966 Q34217 Q496479 Q602903 Q1461 Q488869 Q217432 Q827041 Q3572 Q623549 Q4024 Q3806 Q2973 Q34261 Q3014 Q1773 Q1844 Q14821 Q819587 Q3958 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q633935 Q320416 Q7473516 Q1761 Q890122 Q4007 Q7070 Q3826 Q653545 Q8684 Q270704 Q41474 Q4174 Q4346 Q3838 Q2833 Q1209 Q23661 Q3931 Q3751 Q3750 Q3200 Q157835 Q847550 Q3936 Q2936 Q646780 Q3214 Q1533 Q1530 Q1953 Q5838 Q7027 Q3857 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q3861 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q15324)|c(Q355304))
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:P206 ?y } UNION { ?z property:P206 ?x } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15324 . ?x rdf:type ontology:Q355304 }
Gibraltar Frankfurt Andorra la Vella Kuala Lumpur Abu Dhabi Kazuno Landshut Semboku Tirana Buenos Aires Heidelberg Oxford Yokote Yurihonjō Manila Benalmádena Port Harcourt Beroun Tunis Puerto de la Cruz Frankfurt (Oder) Tübingen Darmstadt Port-au-Prince Wolfsburg Riga Vaduz Coburg Noshiro Neubrandenburg Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Oga Tartessos Tokyo Dublin Bolhrad Rosenheim Eisenach Muscat Kita-Akita Seoul Třebíč Kingstown Emden Waren (Müritz) Kinshasa Freiburg im Breisgau Free Hanseatic City of Bremen Wellington Brandenburg an der Havel Praia Gera Salzgitter Zaporizhzhya Nikaho Bamberg Oldenburg Katagami Cottbus Caracas Baghdad Yerevan Kabul Straubing Wilhelmshaven Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Doha Kyiv Würzburg Brasília
87
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:located_next_to_body_of_water ?y } UNION { ?z property:located_next_to_body_of_water ?x } } . ?z rdf:type ontology:city . ?y rdf:type ontology:body_of_water . ?x rdf:type ontology:watercourse }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P609
Q515 Q83620 Q34442
USER
Which cities are the destination of atleast 1 thoroughfares or roads ?
(c(Q83620)|c(Q34442),P609,c(Q515))
action atleast
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
value 1
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?i WHERE { { ?i rdf:type ontology:Q515 . ?o rdf:type ontology:Q83620 . ?o property:P609 ?i } UNION { ?o property:P609 ?i . ?i rdf:type ontology:Q515 . ?o rdf:type ontology:Q34442 } } GROUP BY ?i } . FILTER ( ?d >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
value 1
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?i WHERE { { ?i rdf:type ontology:city . ?o rdf:type ontology:thoroughfare . ?o property:terminus_location ?i } UNION { ?o property:terminus_location ?i . ?i rdf:type ontology:city . ?o rdf:type ontology:road } } GROUP BY ?i } . FILTER ( ?d >= 1 ) }
[]
city thoroughfare road
Q1899 Q14960 Q42622
SYSTEM
Kyiv, Brno, Suzhou
Q8652 Q349982 Q601254 Q425996 Q756581 Q182852 Q320950 Q869037 Q16506 Q363479 Q1027604 Q2092257 Q16959 Q68481 Q851155 Q181276 Q249007 Q341777 Q5869 Q16520 Q541071 Q360374 Q6602 Q535534 Q819620 Q193724 Q987487 Q180470 Q210365 Q533157 Q58560 Q1630623 Q158245 Q2079 Q23768 Q217698 Q379160 Q18575 Q11736 Q1000069 Q211243 Q612646 Q42622 Q71227 Q1641736 Q185684 Q75110 Q373101 Q426868 Q278877 Q147738 Q502981 Q1008696 Q373023 Q954611 Q1761 Q373687 Q162880 Q682544 Q187136 Q404529 Q183584 Q954569 Q304848 Q14960 Q16666 Q34750 Q570768 Q321778 Q513417 Q11506 Q200603 Q946780 Q1899 Q1009095 Q57756 Q360643 Q58401 Q587388
(c(Q83620)|c(Q34442),P609,c(Q515))
action atleast
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
value 1
[ANSWERS] are the destination of atleast 1 thoroughfares or roads
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?i WHERE { { ?i rdf:type ontology:Q515 . ?o rdf:type ontology:Q83620 . ?o property:P609 ?i } UNION { ?o property:P609 ?i . ?i rdf:type ontology:Q515 . ?o rdf:type ontology:Q34442 } } GROUP BY ?i } . FILTER ( ?d >= 1 ) }
Miami Hegang Dubí Deyang Františkovy Lázně Kunming Trutnov Takasago České Budějovice Shangrao Uherský Ostroh Rožmitál pod Třemšínem Ürümqi Fuzhou Kasai Szolnok Wuwei Čáslav Lhasa Busan Hulín Anqing Strasbourg Hohhot Seiyo Slavkov u Brna Ostrov Huangshan City Beihai Tianshui Qinhuangdao Hostivice Písek Leipzig Las Vegas Weifang Kunszentmárton Tucson Tianjin Lovosice Yinchuan Veselí nad Lužnicí Suzhou Shiyan Pohořelice Hefei Dandong Rizhao Leshan Český Těšín Saint Helier Miyako Rožnov pod Radhoštěm Weihai Jeseník Dublin Binzhou Dezhou Mikulov Luoyang Xuchang Lanzhou Vyškov Daqing Brno Nanjing Fuxin Wuhai Hodonín Vsetín Denpasar Yawatahama Lanžhot Kyiv Otrokovice Lianyungang Suzhou, Anhui Shijiazhuang Mohelnice
Kyiv, Brno and Suzhou are the destination of atleast 1 thoroughfares or roads
Kyiv Brno Suzhou
action atleast
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
value 1
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?i WHERE { { ?i rdf:type ontology:city . ?o rdf:type ontology:thoroughfare . ?o property:terminus_location ?i } UNION { ?o property:terminus_location ?i . ?i rdf:type ontology:city . ?o rdf:type ontology:road } } GROUP BY ?i } . FILTER ( ?d >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1899 Q14960 Q42622
P17
Q15617994
USER
Which administrative territories do Kyiv, Brno and Suzhou belong to ?
(Q1899,P17,c(Q15617994)) (Q14960,P17,c(Q15617994)) (Q42622,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1899
relation P17
type Q15617994
action filter_type
action find
entity Q14960
relation P17
type Q15617994
action filter_type
action find
entity Q42622
relation P17
type Q15617994
['Q1899', 'P17', {'concept': 'Q15617994'}] ['Q14960', 'P17', {'concept': 'Q15617994'}] ['Q42622', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?j ) { ( resource:Q1899 ) ( resource:Q14960 ) } . ?j property:P17 ?n }
Kyiv Brno Suzhou
action union
action filter_type
action find
entity Kyiv
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Brno
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Suzhou
relation country
type designation for an administrative territorial entity
['Kyiv', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brno', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Suzhou', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?j ) { ( resource:Kyiv ) ( resource:Brno ) } . ?j property:country ?n }
[]
designation for an administrative territorial entity
Q148 Q213 Q212
SYSTEM
People's Republic of China, Czech Republic, Ukraine
Q212 Q213 Q153136 Q148
(Q1899,P17,c(Q15617994)) (Q14960,P17,c(Q15617994)) (Q42622,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1899
relation P17
type Q15617994
action filter_type
action find
entity Q14960
relation P17
type Q15617994
action filter_type
action find
entity Q42622
relation P17
type Q15617994
[ANSWERS] Kyiv, Brno and Suzhou belong to
['Q1899', 'P17', {'concept': 'Q15617994'}] ['Q14960', 'P17', {'concept': 'Q15617994'}] ['Q42622', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?j ) { ( resource:Q1899 ) ( resource:Q14960 ) } . ?j property:P17 ?n }
Ukraine Czech Republic Habsburg Empire People's Republic of China
People's Republic of China, Czech Republic and Ukraine Kyiv, Brno and Suzhou belong to
People's Republic of China Czech Republic Ukraine
action union
action filter_type
action find
entity Kyiv
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Brno
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Suzhou
relation country
type designation for an administrative territorial entity
['Kyiv', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brno', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Suzhou', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?j ) { ( resource:Kyiv ) ( resource:Brno ) } . ?j property:country ?n }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q148 Q213 Q212
P530
Q1048835
USER
Who holds diplomatic relationship with People's Republic of China, Czech Republic and Ukraine ?
(Q148,P530,c(Q1048835)) (Q213,P530,c(Q1048835)) (Q212,P530,c(Q1048835))
action union
action filter_type
action find
entity Q148
relation P530
type Q1048835
action filter_type
action find
entity Q213
relation P530
type Q1048835
action filter_type
action find
entity Q212
relation P530
type Q1048835
['Q148', 'P530', {'concept': 'Q1048835'}] ['Q213', 'P530', {'concept': 'Q1048835'}] ['Q212', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { resource:Q148 property:P530 ?b . ?b rdf:type ontology:Q1048835 } UNION { resource:Q213 property:P530 ?b . ?b rdf:type ontology:Q1048835 } }
People's Republic of China Czech Republic Ukraine
action union
action filter_type
action find
entity People's Republic of China
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Czech Republic
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Ukraine
relation diplomatic relation
type political territorial entity
["People's Republic of China", 'diplomatic relation', {'concept': 'political territorial entity'}] ['Czech Republic', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Ukraine', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { resource:People's_Republic_of_China property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } UNION { resource:Czech_Republic property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q183 Q183 Q183
SYSTEM
Germany
Q183 Q408 Q183 Q408 Q183 Q408 Q16
(Q148,P530,c(Q1048835)) (Q213,P530,c(Q1048835)) (Q212,P530,c(Q1048835))
action union
action filter_type
action find
entity Q148
relation P530
type Q1048835
action filter_type
action find
entity Q213
relation P530
type Q1048835
action filter_type
action find
entity Q212
relation P530
type Q1048835
[ANSWER], [ANSWER] and [ANSWER] hold diplomatic relationship with People's Republic of China, Czech Republic and Ukraine
['Q148', 'P530', {'concept': 'Q1048835'}] ['Q213', 'P530', {'concept': 'Q1048835'}] ['Q212', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { resource:Q148 property:P530 ?b . ?b rdf:type ontology:Q1048835 } UNION { resource:Q213 property:P530 ?b . ?b rdf:type ontology:Q1048835 } }
Germany Australia Germany Australia Germany Australia Canada
Germany, Germany and Germany hold diplomatic relationship with People's Republic of China, Czech Republic and Ukraine
Germany Germany Germany
action union
action filter_type
action find
entity People's Republic of China
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Czech Republic
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Ukraine
relation diplomatic relation
type political territorial entity
["People's Republic of China", 'diplomatic relation', {'concept': 'political territorial entity'}] ['Czech Republic', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Ukraine', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { resource:People's_Republic_of_China property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } UNION { resource:Czech_Republic property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } }
[]