Simple Question (Direct)
Simple Question
Q718630
P69
Q163740
USER
Where was James P. Bagian educated ?
(Q718630,P69,c(Q163740))
action filter_type
action find
entity Q718630
relation P69
type Q163740
['Q718630', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?q WHERE { resource:Q718630 property:P69 ?q . ?q rdf:type ontology:Q163740 }
James P. Bagian
action filter_type
action find
entity James P. Bagian
relation educated at
type nonprofit organization
['James P. Bagian', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?q WHERE { resource:James_P._Bagian property:educated_at ?q . ?q rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q603034
SYSTEM
Drexel University
Q603034
(Q718630,P69,c(Q163740))
action filter_type
action find
entity Q718630
relation P69
type Q163740
James P. Bagian was educated at [ANSWER]
['Q718630', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?q WHERE { resource:Q718630 property:P69 ?q . ?q rdf:type ontology:Q163740 }
Drexel University
James P. Bagian was educated at Drexel University
Drexel University
action filter_type
action find
entity James P. Bagian
relation educated at
type nonprofit organization
['James P. Bagian', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?q WHERE { resource:James_P._Bagian property:educated_at ?q . ?q rdf:type ontology:nonprofit_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q603034 Q30 Q4298508
P17
Q15617994
USER
Is that nonprofit organization situated in United States of America and Mishukovo ?
(Q603034,P17,Q30) (Q603034,P17,Q4298508)
action is_in
entity Q603034
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q4298508
relation P17
['Q603034', 'P17', 'Q30'] ['Q603034', 'P17', 'Q4298508']
ASK WHERE { resource:Q603034 property:P17 resource:Q30 . resource:Q603034 property:P17 resource:Q4298508 }
Drexel University United States of America Mishukovo
action is_in
entity Drexel University
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Mishukovo
relation country
['Drexel University', 'country', 'United States of America'] ['Drexel University', 'country', 'Mishukovo']
ASK WHERE { resource:Drexel_University property:country resource:United_States_of_America . resource:Drexel_University property:country resource:Mishukovo }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q603034,P17,Q30) (Q603034,P17,Q4298508)
action is_in
entity Q603034
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q4298508
relation P17
[ANSWER]
['Q603034', 'P17', 'Q30'] ['Q603034', 'P17', 'Q4298508']
ASK WHERE { resource:Q603034 property:P17 resource:Q30 . resource:Q603034 property:P17 resource:Q4298508 }
YES and NO respectively
action is_in
entity Drexel University
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Mishukovo
relation country
['Drexel University', 'country', 'United States of America'] ['Drexel University', 'country', 'Mishukovo']
ASK WHERE { resource:Drexel_University property:country resource:United_States_of_America . resource:Drexel_University property:country resource:Mishukovo }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7009951 Q30
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with United States of America and are New Lusaka Stadium situated in ?
AND((Q30,P530,c(Q15617994)), (Q7009951,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q30
relation P530
action find
entity Q7009951
relation P17
type Q15617994
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q7009951', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q30 property:P530 ?x . resource:Q7009951 property:P17 ?x }
New Lusaka Stadium United States of America
action filter_type
action intersection
action find
entity United States of America
relation diplomatic relation
action find
entity New Lusaka Stadium
relation country
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['New Lusaka Stadium', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_of_America property:diplomatic_relation ?x . resource:New_Lusaka_Stadium property:country ?x }
[]
designation for an administrative territorial entity
Q953
SYSTEM
Zambia
Q953
AND((Q30,P530,c(Q15617994)), (Q7009951,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q30
relation P530
action find
entity Q7009951
relation P17
type Q15617994
[ANSWER] holds diplomatic relationship with United States of America and are New Lusaka Stadium situated in
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q7009951', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q30 property:P530 ?x . resource:Q7009951 property:P17 ?x }
Zambia
Zambia holds diplomatic relationship with United States of America and are New Lusaka Stadium situated in
Zambia
action filter_type
action intersection
action find
entity United States of America
relation diplomatic relation
action find
entity New Lusaka Stadium
relation country
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['New Lusaka Stadium', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_of_America property:diplomatic_relation ?x . resource:New_Lusaka_Stadium property:country ?x }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q953 Q1756357
P17
Q56061
USER
Is Sesheke situated in that administrative territory ?
(Q1756357,P17,Q953)
action is_in
entity Q953
action find
entity Q1756357
relation P17
['Q1756357', 'P17', 'Q953']
ASK WHERE { resource:Q1756357 property:P17 resource:Q953 }
Zambia Sesheke
action is_in
entity Zambia
action find
entity Sesheke
relation country
['Sesheke', 'country', 'Zambia']
ASK WHERE { resource:Sesheke property:country resource:Zambia }
[]
administrative territorial entity
SYSTEM
YES
(Q1756357,P17,Q953)
action is_in
entity Q953
action find
entity Q1756357
relation P17
[ANSWER]
['Q1756357', 'P17', 'Q953']
ASK WHERE { resource:Q1756357 property:P17 resource:Q953 }
Yes
action is_in
entity Zambia
action find
entity Sesheke
relation country
['Sesheke', 'country', 'Zambia']
ASK WHERE { resource:Sesheke property:country resource:Zambia }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q603034 Q545342
P17
Q15617994
USER
Is Drexel University situated in Taufkirchen ?
(Q603034,P17,Q545342)
action is_in
entity Q545342
action find
entity Q603034
relation P17
['Q603034', 'P17', 'Q545342']
ASK WHERE { resource:Q603034 property:P17 resource:Q545342 }
Drexel University Taufkirchen
action is_in
entity Taufkirchen
action find
entity Drexel University
relation country
['Drexel University', 'country', 'Taufkirchen']
ASK WHERE { resource:Drexel_University property:country resource:Taufkirchen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q603034,P17,Q545342)
action is_in
entity Q545342
action find
entity Q603034
relation P17
[ANSWER]
['Q603034', 'P17', 'Q545342']
ASK WHERE { resource:Q603034 property:P17 resource:Q545342 }
No
action is_in
entity Taufkirchen
action find
entity Drexel University
relation country
['Drexel University', 'country', 'Taufkirchen']
ASK WHERE { resource:Drexel_University property:country resource:Taufkirchen }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1029
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with lesser number of administrative territories than Mozambique ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1029
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?c ) WHERE { ?o property:P530 ?b . ?o rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?c < ?s ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Q1029 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } }
Mozambique
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Mozambique
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?c ) WHERE { ?o property:diplomatic_relation ?b . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?c < ?s ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Mozambique property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q29999 Q786 Q924
SYSTEM
Kingdom of the Netherlands, Dominican Republic, Tanzania
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1029
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with lesser number of administrative territories than Mozambique
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?c ) WHERE { ?o property:P530 ?b . ?o rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?c < ?s ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Q1029 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Kingdom of the Netherlands, Dominican Republic and Tanzania have diplomatic relations with lesser number of administrative territories than Mozambique
Kingdom of the Netherlands Dominican Republic Tanzania
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Mozambique
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?c ) WHERE { ?o property:diplomatic_relation ?b . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?c < ?s ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Mozambique property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1011
P530
Q15617994 Q15617994
USER
And also tell me about Cape Verde?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1011
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?r ) WHERE { ?c property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { resource:Q1011 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?r < ?m ) }
Cape Verde
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Cape Verde
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?r ) WHERE { ?c property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { resource:Cape_Verde property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r < ?m ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q145
SYSTEM
Netherlands, Poland, United Kingdom
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1011
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?r ) WHERE { ?c property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { resource:Q1011 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?r < ?m ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand
Netherlands Poland United Kingdom
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Cape Verde
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?r ) WHERE { ?c property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { resource:Cape_Verde property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r < ?m ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q225
P206
Q15324 Q1267889 Q15617994
USER
Which administrative territories are situated close to less number of bodies of water and waterways than Bosnia and Herzegovina ?
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action less
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q225
relation P206
type Q15324
type Q1267889
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Q225 property:P206 ?z . { { ?z rdf:type ontology:Q15324 } UNION { ?z rdf:type ontology:Q1267889 } } } } . FILTER ( ?d < ?x ) . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } } GROUP BY ?g } }
Bosnia and Herzegovina
action less
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Bosnia and Herzegovina
relation located next to body of water
type body of water
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Bosnia_and_Herzegovina property:located_next_to_body_of_water ?z . { { ?z rdf:type ontology:body_of_water } UNION { ?z rdf:type ontology:waterway } } } } . FILTER ( ?d < ?x ) . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ?f . VALUES ( ?f ) { ( ontology:body_of_water ) ( ontology:waterway ) } } GROUP BY ?g } }
[]
body of water waterway designation for an administrative territorial entity
Q347 Q29 Q213
SYSTEM
Liechtenstein, Spain, Czech Republic
Q505785 Q104577 Q3066319 Q31872 Q668 Q525879 Q572949 Q267993 Q525864 Q487328 Q47585 Q1604782 Q241358 Q6237 Q2316529 Q525945 Q14859 Q508863 Q1650693 Q1009384 Q657 Q214 Q622487 Q4628 Q503693 Q4391124 Q664950 Q528579 Q493924 Q555609 Q161258 Q491751 Q10903 Q11343 Q263451 Q442666 Q14825 Q3111694 Q244095 Q532046 Q7566251 Q7496670 Q307508 Q6685 Q3352704 Q252772 Q104192 Q519663 Q2360428 Q255698 Q681329 Q1984541 Q560870 Q621469 Q28 Q29 Q3088406 Q690219 Q917406 Q511806 Q548982 Q2043234 Q42265 Q14889 Q229 Q347 Q338094 Q3939 Q525889 Q622456 Q154322 Q509998 Q539787 Q7042 Q525900 Q507258 Q213 Q547059 Q269010 Q262684 Q573230 Q1604772 Q3923 Q174307 Q522992 Q20267 Q522677 Q194136 Q257859 Q252320 Q251778 Q895413 Q53742 Q567984 Q526087 Q1604766 Q7561974 Q948 Q2758 Q1974 Q573454 Q509536 Q4077862 Q1984544 Q494305 Q304745 Q542837 Q12056 Q4149191 Q7942378 Q47612
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action less
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q225
relation P206
type Q15324
type Q1267889
[ANSWERS] are situated close to less number of bodies of water and waterways than Bosnia and Herzegovina
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Q225 property:P206 ?z . { { ?z rdf:type ontology:Q15324 } UNION { ?z rdf:type ontology:Q1267889 } } } } . FILTER ( ?d < ?x ) . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } } GROUP BY ?g } }
Pförring Desenzano del Garda Fala-Beguets Moosburg an der Isar India Haundorf Solnhofen Muhr am See Höttingen Marktl Garda Ulul Schleiden Lecco Noordpolderzijl Pfofeld Ansbach Mindelstetten Niamey III Weno Chad Slovakia Päwesin Faroe Islands Riedenburg Rakhlitsy Loddin Wörth an der Isar Pasewalk Magdala Clipperton Island Pfatter Finnentrop Wetter (Ruhr) Oberdolling Altmannstein Memmingen Gouraya, Tipaza Bellagio Fischen South Bay Shillingford Yepifan Dorfhain Oneop Eichstätt Kleinmachnow Kösching Tijuana Municipality Abensberg Dümmer Niamey II Owschlag Wennigsen Hungary Spain Front de Seine Perlin Niamey V North Slope Borough Heidenheim Almere Buiten Abbadia Lariana Schwabach Cyprus Liechtenstein Polsingen Dinslaken Westheim Lage South Bank Wellheim Markt Berolzheim Amberg Meinheim Kipfenberg Czech Republic Gnotzheim Neustadt an der Donau Füssen Beilngries Moch Bayreuth Essing Braunlage Schwarz Nassenfels Riva del Garda Cham Pleinfeld Vohburg Bowen Island Donauwörth Woleai Nennslingen Pisaras Sonning Eye Tunisia Mönchengladbach British Columbia Hedersleben Landau an der Isar Baranovskiy Niamey I Kelheim Niamey IV Ettenstatt Oschatz Grigorovo Voxna Domaso
Liechtenstein, Spain and Czech Republic are situated close to less number of bodies of water and waterways than Bosnia and Herzegovina
Liechtenstein Spain Czech Republic
action less
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Bosnia and Herzegovina
relation located next to body of water
type body of water
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Bosnia_and_Herzegovina property:located_next_to_body_of_water ?z . { { ?z rdf:type ontology:body_of_water } UNION { ?z rdf:type ontology:waterway } } } } . FILTER ( ?d < ?x ) . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ?f . VALUES ( ?f ) { ( ontology:body_of_water ) ( ontology:waterway ) } } GROUP BY ?g } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P376
Q16889133
USER
Which class is Poland situated on ?
(Q36,P376,c(Q16889133))
action filter_type
action find
entity Q36
relation P376
type Q16889133
['Q36', 'P376', {'concept': 'Q16889133'}]
SELECT DISTINCT ?a WHERE { resource:Q36 property:P376 ?a . ?a rdf:type ontology:Q16889133 }
Poland
action filter_type
action find
entity Poland
relation located on astronomical body
type class
['Poland', 'located on astronomical body', {'concept': 'class'}]
SELECT DISTINCT ?a WHERE { resource:Poland property:located_on_astronomical_body ?a . ?a rdf:type ontology:class }
[]
class
Q2
SYSTEM
Earth
Q2
(Q36,P376,c(Q16889133))
action filter_type
action find
entity Q36
relation P376
type Q16889133
Poland is situated on [ANSWER]
['Q36', 'P376', {'concept': 'Q16889133'}]
SELECT DISTINCT ?a WHERE { resource:Q36 property:P376 ?a . ?a rdf:type ontology:Q16889133 }
Earth
Poland is situated on Earth
Earth
action filter_type
action find
entity Poland
relation located on astronomical body
type class
['Poland', 'located on astronomical body', {'concept': 'class'}]
SELECT DISTINCT ?a WHERE { resource:Poland property:located_on_astronomical_body ?a . ?a rdf:type ontology:class }
[]