Simple Question (Direct)
Simple Question
Q71979
P27
Q1048835
USER
Which political territory does Karl Link belong to ?
(Q71979,P27,c(Q1048835))
action filter_type
action find
entity Q71979
relation P27
type Q1048835
['Q71979', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q71979 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Karl Link
action filter_type
action find
entity Karl Link
relation country of citizenship
type political territorial entity
['Karl Link', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Karl_Link property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q71979,P27,c(Q1048835))
action filter_type
action find
entity Q71979
relation P27
type Q1048835
Karl Link belongs to [ANSWER]
['Q71979', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q71979 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Germany
Karl Link belongs to Germany
Germany
action filter_type
action find
entity Karl Link
relation country of citizenship
type political territorial entity
['Karl Link', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Karl_Link property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q71979
P641
Q349
USER
Which sport did that person participate in ?
(Q183,P641,c(Q349))
action filter_type
action find
entity Q71979
relation P641
type Q349
['Q183', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q71979 property:P641 ?e . ?e rdf:type ontology:Q349 }
Karl Link
action filter_type
action find
entity Karl Link
relation sport
type sport
['Germany', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:Karl_Link property:sport ?e . ?e rdf:type ontology:sport }
[]
sport
Q221635
SYSTEM
track cycling
Q221635
(Q183,P641,c(Q349))
action filter_type
action find
entity Q71979
relation P641
type Q349
That person participated in [ANSWER]
['Q183', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q71979 property:P641 ?e . ?e rdf:type ontology:Q349 }
track cycling
That person participated in track cycling
track cycling
action filter_type
action find
entity Karl Link
relation sport
type sport
['Germany', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:Karl_Link property:sport ?e . ?e rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5380145 Q183
P530 P495
Q15617994
USER
Which administrative territories holds diplomatic relationship with Germany or are the origin of Enteng Ng Ina Mo ?
OR((Q183,P530,c(Q15617994)), (Q5380145,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q5380145
relation P495
type Q15617994
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q5380145', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q183 property:P530 ?a } UNION { resource:Q5380145 property:P495 ?a } } . ?a rdf:type ontology:Q15617994 }
Enteng Ng Ina Mo Germany
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Enteng Ng Ina Mo
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Enteng Ng Ina Mo', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Germany property:diplomatic_relation ?a } UNION { resource:Enteng_Ng_Ina_Mo property:country_of_origin ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q902 Q30 Q230 Q77 Q1041 Q733 Q983 Q851 Q115
SYSTEM
Some of them are Brazil, Bangladesh, United States of America, Georgia, Uruguay, Senegal, Paraguay, Equatorial Guinea, Saudi Arabia, Ethiopia
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
OR((Q183,P530,c(Q15617994)), (Q5380145,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q5380145
relation P495
type Q15617994
[ANSWERS] hold diplomatic relationship with Germany or are the origin of Enteng Ng Ina Mo
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q5380145', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q183 property:P530 ?a } UNION { resource:Q5380145 property:P495 ?a } } . ?a rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Brazil, Bangladesh, United States of America, Georgia, Uruguay, Senegal, Paraguay, Equatorial Guinea, Saudi Arabia and Ethiopia hold diplomatic relationship with Germany or are the origin of Enteng Ng Ina Mo
Brazil Bangladesh United States of America Georgia Uruguay Senegal Paraguay Equatorial Guinea Saudi Arabia Ethiopia
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Enteng Ng Ina Mo
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Enteng Ng Ina Mo', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Germany property:diplomatic_relation ?a } UNION { resource:Enteng_Ng_Ina_Mo property:country_of_origin ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q155 Q902 Q30 Q230 Q77 Q1041 Q733 Q983 Q851 Q115
P463
Q484652
USER
What international organizations had Brazil, Bangladesh, United States of America, Georgia, Uruguay, Senegal, Paraguay, Equatorial Guinea, Saudi Arabia and Ethiopia as their member ?
(Q155,P463,c(Q484652)) (Q902,P463,c(Q484652)) (Q30,P463,c(Q484652)) (Q230,P463,c(Q484652)) (Q77,P463,c(Q484652)) (Q1041,P463,c(Q484652)) (Q733,P463,c(Q484652)) (Q983,P463,c(Q484652)) (Q851,P463,c(Q484652)) (Q115,P463,c(Q484652))
action union
action filter_type
action find
entity Q155
relation P463
type Q484652
action filter_type
action find
entity Q902
relation P463
type Q484652
action filter_type
action find
entity Q30
relation P463
type Q484652
action filter_type
action find
entity Q230
relation P463
type Q484652
action filter_type
action find
entity Q77
relation P463
type Q484652
action filter_type
action find
entity Q1041
relation P463
type Q484652
action filter_type
action find
entity Q733
relation P463
type Q484652
action filter_type
action find
entity Q983
relation P463
type Q484652
action filter_type
action find
entity Q851
relation P463
type Q484652
action filter_type
action find
entity Q115
relation P463
type Q484652
['Q155', 'P463', {'concept': 'Q484652'}] ['Q902', 'P463', {'concept': 'Q484652'}] ['Q30', 'P463', {'concept': 'Q484652'}] ['Q230', 'P463', {'concept': 'Q484652'}] ['Q77', 'P463', {'concept': 'Q484652'}] ['Q1041', 'P463', {'concept': 'Q484652'}] ['Q733', 'P463', {'concept': 'Q484652'}] ['Q983', 'P463', {'concept': 'Q484652'}] ['Q851', 'P463', {'concept': 'Q484652'}] ['Q115', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?y ) { ( resource:Q155 ) ( resource:Q902 ) } . ?y property:P463 ?l }
Brazil Bangladesh United States of America Georgia Uruguay Senegal Paraguay Equatorial Guinea Saudi Arabia Ethiopia
action union
action filter_type
action find
entity Brazil
relation member of
type international organization
action filter_type
action find
entity Bangladesh
relation member of
type international organization
action filter_type
action find
entity United States of America
relation member of
type international organization
action filter_type
action find
entity Georgia
relation member of
type international organization
action filter_type
action find
entity Uruguay
relation member of
type international organization
action filter_type
action find
entity Senegal
relation member of
type international organization
action filter_type
action find
entity Paraguay
relation member of
type international organization
action filter_type
action find
entity Equatorial Guinea
relation member of
type international organization
action filter_type
action find
entity Saudi Arabia
relation member of
type international organization
action filter_type
action find
entity Ethiopia
relation member of
type international organization
['Brazil', 'member of', {'concept': 'international organization'}] ['Bangladesh', 'member of', {'concept': 'international organization'}] ['United States of America', 'member of', {'concept': 'international organization'}] ['Georgia', 'member of', {'concept': 'international organization'}] ['Uruguay', 'member of', {'concept': 'international organization'}] ['Senegal', 'member of', {'concept': 'international organization'}] ['Paraguay', 'member of', {'concept': 'international organization'}] ['Equatorial Guinea', 'member of', {'concept': 'international organization'}] ['Saudi Arabia', 'member of', {'concept': 'international organization'}] ['Ethiopia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?y ) { ( resource:Brazil ) ( resource:Bangladesh ) } . ?y property:member_of ?l }
[]
international organization
Q81299 Q81299 Q19771
SYSTEM
Organization for Security and Co-operation in Europe for 1st, 2nd, G20 for 3rd
Q471690 Q1065 Q838116 Q47488 Q8475 Q19771 Q17495 Q4230 Q1043527 Q145700 Q7785 Q1065 Q188822 Q795985 Q1043527 Q81299 Q1043527 Q1065 Q37143 Q188822 Q674182 Q842490 Q19771 Q7184 Q81299 Q1065 Q326816 Q4230 Q1065 Q54129 Q471690 Q1043527 Q294278 Q1065 Q1043527 Q4230 Q1065 Q471690 Q1043527 Q294278 Q1065 Q1043527 Q217172 Q18109843 Q1065 Q19771 Q1043527 Q294278 Q1065 Q1043527
(Q155,P463,c(Q484652)) (Q902,P463,c(Q484652)) (Q30,P463,c(Q484652)) (Q230,P463,c(Q484652)) (Q77,P463,c(Q484652)) (Q1041,P463,c(Q484652)) (Q733,P463,c(Q484652)) (Q983,P463,c(Q484652)) (Q851,P463,c(Q484652)) (Q115,P463,c(Q484652))
action union
action filter_type
action find
entity Q155
relation P463
type Q484652
action filter_type
action find
entity Q902
relation P463
type Q484652
action filter_type
action find
entity Q30
relation P463
type Q484652
action filter_type
action find
entity Q230
relation P463
type Q484652
action filter_type
action find
entity Q77
relation P463
type Q484652
action filter_type
action find
entity Q1041
relation P463
type Q484652
action filter_type
action find
entity Q733
relation P463
type Q484652
action filter_type
action find
entity Q983
relation P463
type Q484652
action filter_type
action find
entity Q851
relation P463
type Q484652
action filter_type
action find
entity Q115
relation P463
type Q484652
[ANSWERS]
['Q155', 'P463', {'concept': 'Q484652'}] ['Q902', 'P463', {'concept': 'Q484652'}] ['Q30', 'P463', {'concept': 'Q484652'}] ['Q230', 'P463', {'concept': 'Q484652'}] ['Q77', 'P463', {'concept': 'Q484652'}] ['Q1041', 'P463', {'concept': 'Q484652'}] ['Q733', 'P463', {'concept': 'Q484652'}] ['Q983', 'P463', {'concept': 'Q484652'}] ['Q851', 'P463', {'concept': 'Q484652'}] ['Q115', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?y ) { ( resource:Q155 ) ( resource:Q902 ) } . ?y property:P463 ?l }
Andean Community of Nations United Nations G4 nations International Criminal Court Interpol G20 Universal Postal Union Union of South American Nations Multilateral Investment Guarantee Agency South Asian Association for Regional Cooperation Commonwealth of Nations United Nations Asian Development Bank Bay of Bengal Initiative for Multi-Sectoral Technical and Economic Cooperation njj Multilateral Investment Guarantee Agency Organization for Security and Co-operation in Europe Multilateral Investment Guarantee Agency United Nations G8 Asian Development Bank Arctic Council Organisation for the Prohibition of Chemical Weapons G20 North Atlantic Treaty Organisation Organization for Security and Co-operation in Europe United Nations GUAM Organization for Democracy and Economic Development Union of South American Nations United Nations International Labour Organization Andean Community of Nations Multilateral Investment Guarantee Agency African, Caribbean and Pacific Group of States United Nations Multilateral Investment Guarantee Agency Union of South American Nations United Nations Andean Community of Nations Multilateral Investment Guarantee Agency African, Caribbean and Pacific Group of States United Nations Multilateral Investment Guarantee Agency Cooperation Council for the Arab States of the Gulf Asian Infrastructure Investment Bank United Nations G20 Multilateral Investment Guarantee Agency African, Caribbean and Pacific Group of States United Nations Multilateral Investment Guarantee Agency
Organization for Security and Co-operation in Europe, Organization for Security and Co-operation in Europe and G20 had Brazil, Bangladesh, United States of America, Georgia, Uruguay, Senegal, Paraguay, Equatorial Guinea, Saudi Arabia and Ethiopia as their member
Organization for Security and Co-operation in Europe Organization for Security and Co-operation in Europe G20
action union
action filter_type
action find
entity Brazil
relation member of
type international organization
action filter_type
action find
entity Bangladesh
relation member of
type international organization
action filter_type
action find
entity United States of America
relation member of
type international organization
action filter_type
action find
entity Georgia
relation member of
type international organization
action filter_type
action find
entity Uruguay
relation member of
type international organization
action filter_type
action find
entity Senegal
relation member of
type international organization
action filter_type
action find
entity Paraguay
relation member of
type international organization
action filter_type
action find
entity Equatorial Guinea
relation member of
type international organization
action filter_type
action find
entity Saudi Arabia
relation member of
type international organization
action filter_type
action find
entity Ethiopia
relation member of
type international organization
['Brazil', 'member of', {'concept': 'international organization'}] ['Bangladesh', 'member of', {'concept': 'international organization'}] ['United States of America', 'member of', {'concept': 'international organization'}] ['Georgia', 'member of', {'concept': 'international organization'}] ['Uruguay', 'member of', {'concept': 'international organization'}] ['Senegal', 'member of', {'concept': 'international organization'}] ['Paraguay', 'member of', {'concept': 'international organization'}] ['Equatorial Guinea', 'member of', {'concept': 'international organization'}] ['Saudi Arabia', 'member of', {'concept': 'international organization'}] ['Ethiopia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?y ) { ( resource:Brazil ) ( resource:Bangladesh ) } . ?y property:member_of ?l }
[]
Clarification
Simple Question|Single Entity|Indirect
Q19771
P17
Q1048835
USER
Which political territories are that international organization present in ?
(Q19771,P17,c(Q1048835))
action filter_type
action find
entity Q19771
relation P17
type Q1048835
['Q19771', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . resource:Q19771 property:P17 ?v }
G20
action filter_type
action find
entity G20
relation country
type political territorial entity
['G20', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . resource:G20 property:country ?v }
[]
political territorial entity
Clarification for simple ques.
Q81299
SYSTEM
Did you mean Organization for Security and Co-operation in Europe ?
Q81299 Q81299 Q19771
(Q81299,P17,c(Q1048835)) (Q81299,P17,c(Q1048835)) (Q19771,P17,c(Q1048835))
[ANSWER]
['Q81299', 'P17', {'concept': 'Q1048835'}] ['Q81299', 'P17', {'concept': 'Q1048835'}] ['Q19771', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . resource:Q19771 property:P17 ?v }
Organization for Security and Co-operation in Europe Organization for Security and Co-operation in Europe G20
Did you mean Organization for Security and Co-operation in Europe ?
Organization for Security and Co-operation in Europe
['Organization for Security and Co-operation in Europe', 'country', {'concept': 'political territorial entity'}] ['Organization for Security and Co-operation in Europe', 'country', {'concept': 'political territorial entity'}] ['G20', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . resource:G20 property:country ?v }
[]
Simple Question (Coreferenced)
USER
No, I meant G20. Could you tell me the answer for that?
(Q19771,P17,c(Q1048835))
Q19771
['Q19771', 'P17', {'concept': 'Q1048835'}]
['G20', 'country', {'concept': 'political territorial entity'}]
[]
Q408 Q16 Q183
SYSTEM
Australia, Canada, Germany
Q16 Q408 Q183
(Q19771,P17,c(Q1048835))
action filter_type
action find
entity Q19771
relation P17
type Q1048835
That international organization are in [ANSWERS]
['Q19771', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . resource:Q19771 property:P17 ?v }
Canada Australia Germany
That international organization are in Australia, Canada and Germany
Australia Canada Germany
action filter_type
action find
entity G20
relation country
type political territorial entity
['G20', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . resource:G20 property:country ?v }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q340628
P530
Q15617994
USER
Do Aggius have diplomatic relations with those political territories ?
(Q340628,P530,Q408) (Q340628,P530,Q16) (Q340628,P530,Q183)
action is_in
entity prev_answer
action find
entity Q340628
relation P530
['Q340628', 'P530', 'Q408'] ['Q340628', 'P530', 'Q16'] ['Q340628', 'P530', 'Q183']
ASK WHERE { VALUES ( ?w ) { ( resource:Q16 ) ( resource:Q408 ) ( resource:Q183 ) } . resource:Q340628 property:P530 ?w }
Aggius
action is_in
entity prev_answer
action find
entity Aggius
relation diplomatic relation
['Aggius', 'diplomatic relation', 'Australia'] ['Aggius', 'diplomatic relation', 'Canada'] ['Aggius', 'diplomatic relation', 'Germany']
ASK WHERE { VALUES ( ?w ) { ( resource:Canada ) ( resource:Australia ) ( resource:Germany ) } . resource:Aggius property:diplomatic_relation ?w }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q340628,P530,Q408) (Q340628,P530,Q16) (Q340628,P530,Q183)
action is_in
entity prev_answer
action find
entity Q340628
relation P530
[ANSWER]
['Q340628', 'P530', 'Q408'] ['Q340628', 'P530', 'Q16'] ['Q340628', 'P530', 'Q183']
ASK WHERE { VALUES ( ?w ) { ( resource:Q16 ) ( resource:Q408 ) ( resource:Q183 ) } . resource:Q340628 property:P530 ?w }
No
action is_in
entity prev_answer
action find
entity Aggius
relation diplomatic relation
['Aggius', 'diplomatic relation', 'Australia'] ['Aggius', 'diplomatic relation', 'Canada'] ['Aggius', 'diplomatic relation', 'Germany']
ASK WHERE { VALUES ( ?w ) { ( resource:Canada ) ( resource:Australia ) ( resource:Germany ) } . resource:Aggius property:diplomatic_relation ?w }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q1267889 Q15324 Q1048835
USER
How many political territories are located in the neighbourhood of around 4 waterways or bodies of water ?
(c(Q1048835),P206,c(Q1267889)|c(Q15324))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q1048835
type Q1267889
action find_tuple_counts
relation P206
type Q1048835
type Q15324
value 4
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?x ) WHERE { { ?j property:P206 ?d . ?d rdf:type ontology:Q1267889 . ?j rdf:type ontology:Q1048835 } UNION { ?j property:P206 ?d . ?j rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15324 } } GROUP BY ?j } . FILTER ( ?x = 4 ) }
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
value 4
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?x ) WHERE { { ?j property:located_next_to_body_of_water ?d . ?d rdf:type ontology:waterway . ?j rdf:type ontology:political_territorial_entity } UNION { ?j property:located_next_to_body_of_water ?d . ?j rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:body_of_water } } GROUP BY ?j } . FILTER ( ?x = 4 ) }
[]
waterway body of water political territorial entity
SYSTEM
1
Q5062
(c(Q1048835),P206,c(Q1267889)|c(Q15324))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q1048835
type Q1267889
action find_tuple_counts
relation P206
type Q1048835
type Q15324
value 4
[ANSWER]
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?x ) WHERE { { ?j property:P206 ?d . ?d rdf:type ontology:Q1267889 . ?j rdf:type ontology:Q1048835 } UNION { ?j property:P206 ?d . ?j rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15324 } } GROUP BY ?j } . FILTER ( ?x = 4 ) }
West Nusa Tenggara
1
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
value 4
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?x ) WHERE { { ?j property:located_next_to_body_of_water ?d . ?d rdf:type ontology:waterway . ?j rdf:type ontology:political_territorial_entity } UNION { ?j property:located_next_to_body_of_water ?d . ?j rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:body_of_water } } GROUP BY ?j } . FILTER ( ?x = 4 ) }
[]