Simple Question (Direct)
Simple Question
Q1331959
P403
Q355304
USER
Which watercourse does Inhulets River drain into ?
(Q1331959,P403,c(Q355304))
action filter_type
action find
entity Q1331959
relation P403
type Q355304
['Q1331959', 'P403', {'concept': 'Q355304'}]
SELECT DISTINCT ?z WHERE { resource:Q1331959 property:P403 ?z . ?z rdf:type ontology:Q355304 }
Inhulets River
action filter_type
action find
entity Inhulets River
relation mouth of the watercourse
type watercourse
['Inhulets River', 'mouth of the watercourse', {'concept': 'watercourse'}]
SELECT DISTINCT ?z WHERE { resource:Inhulets_River property:mouth_of_the_watercourse ?z . ?z rdf:type ontology:watercourse }
[]
watercourse
Q40855
SYSTEM
Dnieper River
Q40855
(Q1331959,P403,c(Q355304))
action filter_type
action find
entity Q1331959
relation P403
type Q355304
Inhulets River drains into [ANSWER]
['Q1331959', 'P403', {'concept': 'Q355304'}]
SELECT DISTINCT ?z WHERE { resource:Q1331959 property:P403 ?z . ?z rdf:type ontology:Q355304 }
Dnieper River
Inhulets River drains into Dnieper River
Dnieper River
action filter_type
action find
entity Inhulets River
relation mouth of the watercourse
type watercourse
['Inhulets River', 'mouth of the watercourse', {'concept': 'watercourse'}]
SELECT DISTINCT ?z WHERE { resource:Inhulets_River property:mouth_of_the_watercourse ?z . ?z rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40855
P138
Q151885
USER
Which concept has that watercourse as its toponym ?
(c(Q151885),P138,Q40855)
action filter_type
action find_reverse
entity Q40855
relation P138
type Q151885
[{'concept': 'Q151885'}, 'P138', 'Q40855']
SELECT DISTINCT ?u WHERE { ?u property:P138 resource:Q40855 . ?u rdf:type ontology:Q151885 }
Dnieper River
action filter_type
action find_reverse
entity Dnieper River
relation named after
type concept
[{'concept': 'concept'}, 'named after', 'Dnieper River']
SELECT DISTINCT ?u WHERE { ?u property:named_after resource:Dnieper_River . ?u rdf:type ontology:concept }
[]
concept
Q2710557
SYSTEM
Dnieper–Donets culture
Q2710557
(c(Q151885),P138,Q40855)
action filter_type
action find_reverse
entity Q40855
relation P138
type Q151885
[ANSWER] has that watercourse as its toponym
[{'concept': 'Q151885'}, 'P138', 'Q40855']
SELECT DISTINCT ?u WHERE { ?u property:P138 resource:Q40855 . ?u rdf:type ontology:Q151885 }
Dnieper–Donets culture
Dnieper–Donets culture has that watercourse as its toponym
Dnieper–Donets culture
action filter_type
action find_reverse
entity Dnieper River
relation named after
type concept
[{'concept': 'concept'}, 'named after', 'Dnieper River']
SELECT DISTINCT ?u WHERE { ?u property:named_after resource:Dnieper_River . ?u rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1331959
P974
Q355304
USER
Which rivers have Inhulets River as their parent rive ?
(Q1331959,P974,c(Q355304))
action filter_type
action find
entity Q1331959
relation P974
type Q355304
['Q1331959', 'P974', {'concept': 'Q355304'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q355304 . resource:Q1331959 property:P974 ?q }
Inhulets River
action filter_type
action find
entity Inhulets River
relation tributary
type watercourse
['Inhulets River', 'tributary', {'concept': 'watercourse'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:watercourse . resource:Inhulets_River property:tributary ?q }
[]
watercourse
Q2634526 Q1633893
SYSTEM
Vysun River, Saksahan
Q2634526 Q1633893
(Q1331959,P974,c(Q355304))
action filter_type
action find
entity Q1331959
relation P974
type Q355304
[ANSWERS] have Inhulets River as their parent rive
['Q1331959', 'P974', {'concept': 'Q355304'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q355304 . resource:Q1331959 property:P974 ?q }
Vysun River Saksahan
Vysun River and Saksahan have Inhulets River as their parent rive
Vysun River Saksahan
action filter_type
action find
entity Inhulets River
relation tributary
type watercourse
['Inhulets River', 'tributary', {'concept': 'watercourse'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:watercourse . resource:Inhulets_River property:tributary ?q }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2887520
Q355304
USER
And what about Vistula basin?
(Q2887520,P974,c(Q355304))
action filter_type
action find
entity Q2887520
relation P974
type Q355304
['Q2887520', 'P974', {'concept': 'Q355304'}]
SELECT DISTINCT ?q WHERE { resource:Q2887520 property:P974 ?q . ?q rdf:type ontology:Q355304 }
Vistula basin
action filter_type
action find
entity Vistula basin
relation tributary
type watercourse
['Vistula basin', 'tributary', {'concept': 'watercourse'}]
SELECT DISTINCT ?q WHERE { resource:Vistula_basin property:tributary ?q . ?q rdf:type ontology:watercourse }
[]
watercourse
Q60055 Q840694 Q216488
SYSTEM
Narew, Dunajec, San
Q9183151 Q362287 Q840694 Q11787872 Q8040706 Q9274807 Q9182704 Q11797113 Q1408190 Q11823842 Q20892639 Q216488 Q11830730 Q384479 Q11766827 Q9190132 Q9179207 Q212562 Q9367505 Q615272 Q9163814 Q11740410 Q954273 Q9164322 Q11695591 Q9249444 Q11786195 Q11830505 Q1261531 Q2377663 Q11750301 Q387327 Q656640 Q11687172 Q11694388 Q855902 Q9275055 Q11723319 Q833916 Q9374403 Q9347822 Q2134229 Q9189362 Q456984 Q1666451 Q1327596 Q6416699 Q993464 Q9333588 Q9392654 Q640476 Q9179254 Q11723418 Q9363827 Q9362287 Q11687913 Q11701188 Q1253322 Q750418 Q1521184 Q11813032 Q1987434 Q11743558 Q3360378 Q772970 Q9265268 Q175887 Q9385858 Q11714994 Q11817152 Q6977719 Q11695193 Q1543147 Q1149087 Q1149245 Q11017177 Q197123 Q1130403 Q60055 Q221200 Q11819711 Q980095 Q927195 Q1477204 Q1475746
(Q2887520,P974,c(Q355304))
action filter_type
action find
entity Q2887520
relation P974
type Q355304
[ANSWERS]
['Q2887520', 'P974', {'concept': 'Q355304'}]
SELECT DISTINCT ?q WHERE { resource:Q2887520 property:P974 ?q . ?q rdf:type ontology:Q355304 }
Bładnica Sanna Dunajec Mątawa Wyżnica Gostynia Bystra Okrzejka Wierzyca Poniwiec Klikawka San Pszczynka Łęg Malinka Chodelka Brennica Opatówka Uszwica Raba Babulówka Knajka Skawinka Bajerka Dziechcinka Dłubnia Mołtawa Prądnik River Drwęca Szreniawa Krępianka Świder Bzura Bachórz Dobka Biała Gościejów Jaszowiec Kurówka Wilga Suchy Martwa Wisła Chechło Radomka Mątawa Wilga Kisielina Skrwa Lewa Sanka Zwoleńka Wda Breń Jawornik Tążyna Trześniówka White Vistula Gościradowiec Skawa Pilica Nida Partecznik Nidzica Kopydło Leniwka Brda Gahura Skrwa Zagożdżonka Iłownica Pinkasów Potok Szkarpawa Drwinka Rudawa Przemsza Czarna Staszowska Black Vistula Zgłowiączka Wieprz Narew Wisłoka Plewka Nogat Soła Kamienna Koprzywianka
Narew Dunajec San
action filter_type
action find
entity Vistula basin
relation tributary
type watercourse
['Vistula basin', 'tributary', {'concept': 'watercourse'}]
SELECT DISTINCT ?q WHERE { resource:Vistula_basin property:tributary ?q . ?q rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2887520
P974
Q82794
USER
Are those watercourses a parent rive of Vistula basin ?
(Q2887520,P974,Q60055) (Q2887520,P974,Q840694) (Q2887520,P974,Q216488)
action is_in
entity prev_answer
action find
entity Q2887520
relation P974
['Q2887520', 'P974', 'Q60055'] ['Q2887520', 'P974', 'Q840694'] ['Q2887520', 'P974', 'Q216488']
ASK WHERE { VALUES ( ?o ) { ( resource:Q9183151 ) ( resource:Q362287 ) ( resource:Q840694 ) } . resource:Q2887520 property:P974 ?o }
Vistula basin
action is_in
entity prev_answer
action find
entity Vistula basin
relation tributary
['Vistula basin', 'tributary', 'Narew'] ['Vistula basin', 'tributary', 'Dunajec'] ['Vistula basin', 'tributary', 'San']
ASK WHERE { VALUES ( ?o ) { ( resource:Bładnica ) ( resource:Sanna ) ( resource:Dunajec ) } . resource:Vistula_basin property:tributary ?o }
[]
geographic region
SYSTEM
YES
(Q2887520,P974,Q60055) (Q2887520,P974,Q840694) (Q2887520,P974,Q216488)
action is_in
entity prev_answer
action find
entity Q2887520
relation P974
[ANSWER]
['Q2887520', 'P974', 'Q60055'] ['Q2887520', 'P974', 'Q840694'] ['Q2887520', 'P974', 'Q216488']
ASK WHERE { VALUES ( ?o ) { ( resource:Q9183151 ) ( resource:Q362287 ) ( resource:Q840694 ) } . resource:Q2887520 property:P974 ?o }
Yes
action is_in
entity prev_answer
action find
entity Vistula basin
relation tributary
['Vistula basin', 'tributary', 'Narew'] ['Vistula basin', 'tributary', 'Dunajec'] ['Vistula basin', 'tributary', 'San']
ASK WHERE { VALUES ( ?o ) { ( resource:Bładnica ) ( resource:Sanna ) ( resource:Dunajec ) } . resource:Vistula_basin property:tributary ?o }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3367142
P3173
Q355304 Q811979
USER
Which architectural structures can offer views of more number of watercourses than Pas de Bellecombe ?
(c(Q811979),P3173,c(Q355304))
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q355304
action count
action filter_type
action find
entity Q3367142
relation P3173
type Q811979
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?v ) WHERE { ?h property:P3173 ?a . ?h rdf:type ontology:Q811979 . ?a rdf:type ontology:Q355304 } GROUP BY ?h } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l rdf:type ontology:Q811979 . resource:Q3367142 property:P3173 ?l } } }
Pas de Bellecombe
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
action count
action filter_type
action find
entity Pas de Bellecombe
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?v ) WHERE { ?h property:offers_view_on ?a . ?h rdf:type ontology:architectural_structure . ?a rdf:type ontology:watercourse } GROUP BY ?h } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l rdf:type ontology:architectural_structure . resource:Pas_de_Bellecombe property:offers_view_on ?l } } }
[]
watercourse architectural structure
Q26196531 Q2433474
SYSTEM
Washburn Point, Tunnel View
Q26196531 Q2433474
(c(Q811979),P3173,c(Q355304))
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q355304
action count
action filter_type
action find
entity Q3367142
relation P3173
type Q811979
[ANSWERS] can offer views of more number of watercourses than Pas de Bellecombe
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?v ) WHERE { ?h property:P3173 ?a . ?h rdf:type ontology:Q811979 . ?a rdf:type ontology:Q355304 } GROUP BY ?h } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l rdf:type ontology:Q811979 . resource:Q3367142 property:P3173 ?l } } }
Washburn Point Tunnel View
Washburn Point and Tunnel View can offer views of more number of watercourses than Pas de Bellecombe
Washburn Point Tunnel View
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
action count
action filter_type
action find
entity Pas de Bellecombe
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?v ) WHERE { ?h property:offers_view_on ?a . ?h rdf:type ontology:architectural_structure . ?a rdf:type ontology:watercourse } GROUP BY ?h } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l rdf:type ontology:architectural_structure . resource:Pas_de_Bellecombe property:offers_view_on ?l } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q7088437
P3173
Q355304 Q811979
USER
And how about Olmsted Point?
(c(Q811979),P3173,c(Q355304))
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q355304
action count
action filter_type
action find
entity Q7088437
relation P3173
type Q811979
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?k ) WHERE { ?z property:P3173 ?g . ?z rdf:type ontology:Q811979 . ?g rdf:type ontology:Q355304 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j rdf:type ontology:Q811979 . resource:Q7088437 property:P3173 ?j } } . FILTER ( ?k > ?s ) }
Olmsted Point
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
action count
action filter_type
action find
entity Olmsted Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?k ) WHERE { ?z property:offers_view_on ?g . ?z rdf:type ontology:architectural_structure . ?g rdf:type ontology:watercourse } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j rdf:type ontology:architectural_structure . resource:Olmsted_Point property:offers_view_on ?j } } . FILTER ( ?k > ?s ) }
[]
watercourse architectural structure
Q26196531 Q2433474
SYSTEM
Washburn Point, Tunnel View
Q26196531 Q2433474
(c(Q811979),P3173,c(Q355304))
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q355304
action count
action filter_type
action find
entity Q7088437
relation P3173
type Q811979
[ANSWERS]
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?k ) WHERE { ?z property:P3173 ?g . ?z rdf:type ontology:Q811979 . ?g rdf:type ontology:Q355304 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j rdf:type ontology:Q811979 . resource:Q7088437 property:P3173 ?j } } . FILTER ( ?k > ?s ) }
Washburn Point Tunnel View
Washburn Point Tunnel View
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
action count
action filter_type
action find
entity Olmsted Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?k ) WHERE { ?z property:offers_view_on ?g . ?z rdf:type ontology:architectural_structure . ?g rdf:type ontology:watercourse } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j rdf:type ontology:architectural_structure . resource:Olmsted_Point property:offers_view_on ?j } } . FILTER ( ?k > ?s ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15904932 Q3367142
P17
Q15617994
USER
Which administrative territories are Pas de Bellecombe or Na Toei situated in ?
OR((Q3367142,P17,c(Q15617994)), (Q15904932,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3367142
relation P17
action find
entity Q15904932
relation P17
type Q15617994
{'OR': [['Q3367142', 'P17', {'concept': 'Q15617994'}], ['Q15904932', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q3367142 property:P17 ?x } UNION { resource:Q15904932 property:P17 ?x } } }
Na Toei Pas de Bellecombe
action filter_type
action union
action find
entity Pas de Bellecombe
relation country
action find
entity Na Toei
relation country
type designation for an administrative territorial entity
{'OR': [['Pas de Bellecombe', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Na Toei', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pas_de_Bellecombe property:country ?x } UNION { resource:Na_Toei property:country ?x } } }
[]
designation for an administrative territorial entity
Q142 Q869
SYSTEM
France, Thailand
Q142 Q869
OR((Q3367142,P17,c(Q15617994)), (Q15904932,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3367142
relation P17
action find
entity Q15904932
relation P17
type Q15617994
Pas de Bellecombe or Na Toei are situated in [ANSWERS]
{'OR': [['Q3367142', 'P17', {'concept': 'Q15617994'}], ['Q15904932', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q3367142 property:P17 ?x } UNION { resource:Q15904932 property:P17 ?x } } }
France Thailand
Pas de Bellecombe or Na Toei are situated in France and Thailand
France Thailand
action filter_type
action union
action find
entity Pas de Bellecombe
relation country
action find
entity Na Toei
relation country
type designation for an administrative territorial entity
{'OR': [['Pas de Bellecombe', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Na Toei', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pas_de_Bellecombe property:country ?x } UNION { resource:Na_Toei property:country ?x } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q2088357
USER
How many administrative territories are the countries of origin of lesser number of film genres and musical ensembles than that administrative territory ?
(c(Q201658)|c(Q2088357),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
designation for an administrative territorial entity film genre musical ensemble
Comparative|Count over More/Less|Mult. entity type|Clarification
Q869
SYSTEM
Did you mean Thailand ?
(c(Q201658)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
Did you mean Thailand ?
Thailand
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant France. Could you tell me the answer for that?
(c(Q201658)|c(Q2088357),P495,c(Q15617994))
Q142
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
165
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q201658)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
165
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?c ) WHERE { ?j property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?u ) WHERE { ?y property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?u = ?z ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?c ) WHERE { ?j property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?u ) WHERE { ?y property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?u = ?z ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?c ) WHERE { ?j property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?u ) WHERE { ?y property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?u = ?z ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relations with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?c ) WHERE { ?j property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?u ) WHERE { ?y property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?u = ?z ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P36
Q56061
USER
Which administrative territory is the capital of France ?
(Q142,P36,c(Q56061))
action filter_type
action find
entity Q142
relation P36
type Q56061
['Q142', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q142 property:P36 ?a . ?a rdf:type ontology:Q56061 }
France
action filter_type
action find
entity France
relation capital
type administrative territorial entity
['France', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:France property:capital ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q142,P36,c(Q56061))
action filter_type
action find
entity Q142
relation P36
type Q56061
[ANSWER] is the capital of France
['Q142', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q142 property:P36 ?a . ?a rdf:type ontology:Q56061 }
Paris
Paris is the capital of France
Paris
action filter_type
action find
entity France
relation capital
type administrative territorial entity
['France', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:France property:capital ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q90 Q845013 Q193819
P47
Q20667921
USER
Is that administrative territory bordered by Cromary and Vincennes ?
(Q90,P47,Q845013) (Q90,P47,Q193819)
action is_in
entity Q90
action intersection
action find_reverse
entity Q845013
relation P47
action find_reverse
entity Q193819
relation P47
['Q90', 'P47', 'Q845013'] ['Q90', 'P47', 'Q193819']
ASK WHERE { resource:Q90 property:P47 resource:Q845013 . resource:Q90 property:P47 resource:Q193819 }
Paris Cromary Vincennes
action is_in
entity Paris
action intersection
action find_reverse
entity Cromary
relation shares border with
action find_reverse
entity Vincennes
relation shares border with
['Paris', 'shares border with', 'Cromary'] ['Paris', 'shares border with', 'Vincennes']
ASK WHERE { resource:Paris property:shares_border_with resource:Cromary . resource:Paris property:shares_border_with resource:Vincennes }
[]
type of french administrative division
SYSTEM
NO and YES respectively
(Q90,P47,Q845013) (Q90,P47,Q193819)
action is_in
entity Q90
action intersection
action find_reverse
entity Q845013
relation P47
action find_reverse
entity Q193819
relation P47
[ANSWER]
['Q90', 'P47', 'Q845013'] ['Q90', 'P47', 'Q193819']
ASK WHERE { resource:Q90 property:P47 resource:Q845013 . resource:Q90 property:P47 resource:Q193819 }
NO and YES respectively
action is_in
entity Paris
action intersection
action find_reverse
entity Cromary
relation shares border with
action find_reverse
entity Vincennes
relation shares border with
['Paris', 'shares border with', 'Cromary'] ['Paris', 'shares border with', 'Vincennes']
ASK WHERE { resource:Paris property:shares_border_with resource:Cromary . resource:Paris property:shares_border_with resource:Vincennes }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1633893 Q7986003
P17
Q15617994
USER
Is Saksahan present in West Milford Township Public Schools ?
(Q1633893,P17,Q7986003)
action is_in
entity Q7986003
action find
entity Q1633893
relation P17
['Q1633893', 'P17', 'Q7986003']
ASK WHERE { resource:Q1633893 property:P17 resource:Q7986003 }
Saksahan West Milford Township Public Schools
action is_in
entity West Milford Township Public Schools
action find
entity Saksahan
relation country
['Saksahan', 'country', 'West Milford Township Public Schools']
ASK WHERE { resource:Saksahan property:country resource:West_Milford_Township_Public_Schools }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1633893,P17,Q7986003)
action is_in
entity Q7986003
action find
entity Q1633893
relation P17
[ANSWER]
['Q1633893', 'P17', 'Q7986003']
ASK WHERE { resource:Q1633893 property:P17 resource:Q7986003 }
No
action is_in
entity West Milford Township Public Schools
action find
entity Saksahan
relation country
['Saksahan', 'country', 'West Milford Township Public Schools']
ASK WHERE { resource:Saksahan property:country resource:West_Milford_Township_Public_Schools }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q60055 Q184 Q36
P17
Q15617994
USER
Is Narew situated in Belarus and Poland ?
(Q60055,P17,Q184) (Q60055,P17,Q36)
action is_in
entity Q60055
action intersection
action find_reverse
entity Q184
relation P17
action find_reverse
entity Q36
relation P17
['Q60055', 'P17', 'Q184'] ['Q60055', 'P17', 'Q36']
ASK WHERE { resource:Q60055 property:P17 resource:Q184 . resource:Q60055 property:P17 resource:Q36 }
Narew Belarus Poland
action is_in
entity Narew
action intersection
action find_reverse
entity Belarus
relation country
action find_reverse
entity Poland
relation country
['Narew', 'country', 'Belarus'] ['Narew', 'country', 'Poland']
ASK WHERE { resource:Narew property:country resource:Belarus . resource:Narew property:country resource:Poland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q60055,P17,Q184) (Q60055,P17,Q36)
action is_in
entity Q60055
action intersection
action find_reverse
entity Q184
relation P17
action find_reverse
entity Q36
relation P17
[ANSWER]
['Q60055', 'P17', 'Q184'] ['Q60055', 'P17', 'Q36']
ASK WHERE { resource:Q60055 property:P17 resource:Q184 . resource:Q60055 property:P17 resource:Q36 }
Yes
action is_in
entity Narew
action intersection
action find_reverse
entity Belarus
relation country
action find_reverse
entity Poland
relation country
['Narew', 'country', 'Belarus'] ['Narew', 'country', 'Poland']
ASK WHERE { resource:Narew property:country resource:Belarus . resource:Narew property:country resource:Poland }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5490102 Q1331959
P17
Q15617994
USER
Which administrative territories are Inhulets River or Sumner located in ?
OR((Q1331959,P17,c(Q15617994)), (Q5490102,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1331959
relation P17
action find
entity Q5490102
relation P17
type Q15617994
{'OR': [['Q1331959', 'P17', {'concept': 'Q15617994'}], ['Q5490102', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1331959 property:P17 ?m } UNION { resource:Q5490102 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
Sumner Inhulets River
action filter_type
action union
action find
entity Inhulets River
relation country
action find
entity Sumner
relation country
type designation for an administrative territorial entity
{'OR': [['Inhulets River', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Sumner', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Inhulets_River property:country ?m } UNION { resource:Sumner property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q212 Q30
SYSTEM
Ukraine, United States of America
Q212 Q30
OR((Q1331959,P17,c(Q15617994)), (Q5490102,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1331959
relation P17
action find
entity Q5490102
relation P17
type Q15617994
Inhulets River or Sumner are located in [ANSWERS]
{'OR': [['Q1331959', 'P17', {'concept': 'Q15617994'}], ['Q5490102', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1331959 property:P17 ?m } UNION { resource:Q5490102 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
Ukraine United States of America
Inhulets River or Sumner are located in Ukraine and United States of America
Ukraine United States of America
action filter_type
action union
action find
entity Inhulets River
relation country
action find
entity Sumner
relation country
type designation for an administrative territorial entity
{'OR': [['Inhulets River', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Sumner', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Inhulets_River property:country ?m } UNION { resource:Sumner property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]