Simple Question (Direct)
Simple Question
Q6058893
P641
Q349
USER
Which sport was Ali Sevimli a part of ?
(Q6058893,P641,c(Q349))
action filter_type
action find
entity Q6058893
relation P641
type Q349
['Q6058893', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q6058893 property:P641 ?i . ?i rdf:type ontology:Q349 }
Ali Sevimli
action filter_type
action find
entity Ali Sevimli
relation sport
type sport
['Ali Sevimli', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Ali_Sevimli property:sport ?i . ?i rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6058893,P641,c(Q349))
action filter_type
action find
entity Q6058893
relation P641
type Q349
Which sport was Ali Sevimli a part of
['Q6058893', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q6058893 property:P641 ?i . ?i rdf:type ontology:Q349 }
association football
Which sport was Ali Sevimli a part of
association football
action filter_type
action find
entity Ali Sevimli
relation sport
type sport
['Ali Sevimli', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Ali_Sevimli property:sport ?i . ?i rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6058893
P27
Q15617994
USER
Which administrative territory is Ali Sevimli a civilian of ?
(Q6058893,P27,c(Q15617994))
action filter_type
action find
entity Q6058893
relation P27
type Q15617994
['Q6058893', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q6058893 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Ali Sevimli
action filter_type
action find
entity Ali Sevimli
relation country of citizenship
type designation for an administrative territorial entity
['Ali Sevimli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Ali_Sevimli property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43
SYSTEM
Turkey
Q43
(Q6058893,P27,c(Q15617994))
action filter_type
action find
entity Q6058893
relation P27
type Q15617994
[ANSWER] is Ali Sevimli a civilian of
['Q6058893', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q6058893 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Turkey
Turkey is Ali Sevimli a civilian of
Turkey
action filter_type
action find
entity Ali Sevimli
relation country of citizenship
type designation for an administrative territorial entity
['Ali Sevimli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Ali_Sevimli property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?v ) { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?r ) WHERE { ?a property:P530 ?b . ?a rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?a } } . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?x ) WHERE { ?z property:P530 ?o . ?z rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?x = ?v ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?v ) { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?r ) WHERE { ?a property:diplomatic_relation ?b . ?a rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } } . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?x ) WHERE { ?z property:diplomatic_relation ?o . ?z rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?x = ?v ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] are known to have diplomatic connections with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?v ) { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?r ) WHERE { ?a property:P530 ?b . ?a rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?a } } . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?x ) WHERE { ?z property:P530 ?o . ?z rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?x = ?v ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea are known to have diplomatic connections with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?v ) { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?r ) WHERE { ?a property:diplomatic_relation ?b . ?a rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } } . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?x ) WHERE { ?z property:diplomatic_relation ?o . ?z rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?x = ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic associations with atmost 2 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { FILTER ( ?g <= 2 ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?g ) WHERE { ?n rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 . ?n property:P530 ?k } GROUP BY ?n } }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { FILTER ( ?g <= 2 ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?g ) WHERE { ?n rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation ?k } GROUP BY ?n } }
[]
political territorial entity political territorial entity
SYSTEM
8
Q1000 Q40 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { FILTER ( ?g <= 2 ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?g ) WHERE { ?n rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 . ?n property:P530 ?k } GROUP BY ?n } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
8
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { FILTER ( ?g <= 2 ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?g ) WHERE { ?n rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation ?k } GROUP BY ?n } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1000
P17
Q1048835
USER
How many political territories are Gabon present in ?
(Q1000,P17,c(Q1048835))
action count
action filter_type
action find
entity Q1000
relation P17
type Q1048835
['Q1000', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Q1000 property:P17 ?w . ?w rdf:type ontology:Q1048835 }
Gabon
action count
action filter_type
action find
entity Gabon
relation country
type political territorial entity
['Gabon', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Gabon property:country ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q1000
(Q1000,P17,c(Q1048835))
action count
action filter_type
action find
entity Q1000
relation P17
type Q1048835
[ANSWER]
['Q1000', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Q1000 property:P17 ?w . ?w rdf:type ontology:Q1048835 }
Gabon
1
action count
action filter_type
action find
entity Gabon
relation country
type political territorial entity
['Gabon', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Gabon property:country ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q21924072
P17
Q1048835
USER
And what about Lindeman Island Airport?
(Q21924072,P17,c(Q1048835))
action count
action filter_type
action find
entity Q21924072
relation P17
type Q1048835
['Q21924072', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Q21924072 property:P17 ?i . ?i rdf:type ontology:Q1048835 }
Lindeman Island Airport
action count
action filter_type
action find
entity Lindeman Island Airport
relation country
type political territorial entity
['Lindeman Island Airport', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Lindeman_Island_Airport property:country ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q408
(Q21924072,P17,c(Q1048835))
action count
action filter_type
action find
entity Q21924072
relation P17
type Q1048835
[ANSWER]
['Q21924072', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Q21924072 property:P17 ?i . ?i rdf:type ontology:Q1048835 }
Australia
1
action count
action filter_type
action find
entity Lindeman Island Airport
relation country
type political territorial entity
['Lindeman Island Airport', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Lindeman_Island_Airport property:country ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5012506
Q1048835
USER
And also tell me about CKPT-FM?
(Q5012506,P17,c(Q1048835))
action count
action filter_type
action find
entity Q5012506
relation P17
type Q1048835
['Q5012506', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { ?f rdf:type ontology:Q1048835 . resource:Q5012506 property:P17 ?f }
CKPT-FM
action count
action filter_type
action find
entity CKPT-FM
relation country
type political territorial entity
['CKPT-FM', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { ?f rdf:type ontology:political_territorial_entity . resource:CKPT-FM property:country ?f }
[]
political territorial entity
SYSTEM
1
(Q5012506,P17,c(Q1048835))
action count
action filter_type
action find
entity Q5012506
relation P17
type Q1048835
[ANSWER]
['Q5012506', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { ?f rdf:type ontology:Q1048835 . resource:Q5012506 property:P17 ?f }
1
action count
action filter_type
action find
entity CKPT-FM
relation country
type political territorial entity
['CKPT-FM', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { ?f rdf:type ontology:political_territorial_entity . resource:CKPT-FM property:country ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1000
P1532
Q6979593
USER
Who play for Gabon ?
(c(Q6979593),P1532,Q1000)
action filter_type
action find_reverse
entity Q1000
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q1000']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q6979593 . ?y property:P1532 resource:Q1000 }
Gabon
action filter_type
action find_reverse
entity Gabon
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Gabon']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:national_association_football_team . ?y property:country_for_sport resource:Gabon }
[]
national association football team
Q23887368 Q3066716
SYSTEM
Gabon Olympic football team, Gabon women's national football team
Q23887368 Q3066716
(c(Q6979593),P1532,Q1000)
action filter_type
action find_reverse
entity Q1000
relation P1532
type Q6979593
And [ANSWERS] play for Gabon
[{'concept': 'Q6979593'}, 'P1532', 'Q1000']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q6979593 . ?y property:P1532 resource:Q1000 }
Gabon Olympic football team Gabon women's national football team
And Gabon Olympic football team and Gabon women's national football team play for Gabon
Gabon Olympic football team Gabon women's national football team
action filter_type
action find_reverse
entity Gabon
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Gabon']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:national_association_football_team . ?y property:country_for_sport resource:Gabon }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q23887368 Q3066716
P641
Q349
USER
Which sports did Gabon Olympic football team and Gabon women's national football team participate in ?
(Q23887368,P641,c(Q349)) (Q3066716,P641,c(Q349))
action union
action filter_type
action find
entity Q23887368
relation P641
type Q349
action filter_type
action find
entity Q3066716
relation P641
type Q349
['Q23887368', 'P641', {'concept': 'Q349'}] ['Q3066716', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { { resource:Q23887368 property:P641 ?t . ?t rdf:type ontology:Q349 } UNION { resource:Q3066716 property:P641 ?t . ?t rdf:type ontology:Q349 } }
Gabon Olympic football team Gabon women's national football team
action union
action filter_type
action find
entity Gabon Olympic football team
relation sport
type sport
action filter_type
action find
entity Gabon women's national football team
relation sport
type sport
['Gabon Olympic football team', 'sport', {'concept': 'sport'}] ["Gabon women's national football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { { resource:Gabon_Olympic_football_team property:sport ?t . ?t rdf:type ontology:sport } UNION { resource:Gabon_women's_national_football_team property:sport ?t . ?t rdf:type ontology:sport } }
[]
sport
Q2736 Q606060
SYSTEM
association football, women's association football
Q2736 Q606060
(Q23887368,P641,c(Q349)) (Q3066716,P641,c(Q349))
action union
action filter_type
action find
entity Q23887368
relation P641
type Q349
action filter_type
action find
entity Q3066716
relation P641
type Q349
Gabon Olympic football team and Gabon women's national football team participated in Gabon [ANSWERS]
['Q23887368', 'P641', {'concept': 'Q349'}] ['Q3066716', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { { resource:Q23887368 property:P641 ?t . ?t rdf:type ontology:Q349 } UNION { resource:Q3066716 property:P641 ?t . ?t rdf:type ontology:Q349 } }
association football women's association football
Gabon Olympic football team and Gabon women's national football team participated in Gabon association football and women's association football
association football women's association football
action union
action filter_type
action find
entity Gabon Olympic football team
relation sport
type sport
action filter_type
action find
entity Gabon women's national football team
relation sport
type sport
['Gabon Olympic football team', 'sport', {'concept': 'sport'}] ["Gabon women's national football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { { resource:Gabon_Olympic_football_team property:sport ?t . ?t rdf:type ontology:sport } UNION { resource:Gabon_women's_national_football_team property:sport ?t . ?t rdf:type ontology:sport } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43
P30
Q2221906
USER
Which geographic locations are Turkey a part of ?
(Q43,P30,c(Q2221906))
action filter_type
action find
entity Q43
relation P30
type Q2221906
['Q43', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q2221906 . resource:Q43 property:P30 ?w }
Turkey
action filter_type
action find
entity Turkey
relation continent
type geographic location
['Turkey', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:geographic_location . resource:Turkey property:continent ?w }
[]
geographic location
Q46 Q48
SYSTEM
Europe, Asia
Q46 Q48
(Q43,P30,c(Q2221906))
action filter_type
action find
entity Q43
relation P30
type Q2221906
[ANSWERS]
['Q43', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q2221906 . resource:Q43 property:P30 ?w }
Europe Asia
Which geographic locations are Turkey a part of
Europe Asia
action filter_type
action find
entity Turkey
relation continent
type geographic location
['Turkey', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:geographic_location . resource:Turkey property:continent ?w }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q7597846 Q43
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with Turkey and are not the countries of citizenship of Stan Reddick ?
AND((Q43,P530,c(Q1048835)), NOT((Q7597846,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q43
relation P530
action find
entity Q7597846
relation P27
type Q1048835
{'AND': [['Q43', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q7597846', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?a WHERE { resource:Q43 property:P530 ?a . MINUS { resource:Q7597846 property:P27 ?a } . ?a rdf:type ontology:Q1048835 }
Stan Reddick Turkey
action filter_type
action difference
action find
entity Turkey
relation diplomatic relation
action find
entity Stan Reddick
relation country of citizenship
type political territorial entity
{'AND': [['Turkey', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Stan Reddick', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?a WHERE { resource:Turkey property:diplomatic_relation ?a . MINUS { resource:Stan_Reddick property:country_of_citizenship ?a } . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
AND((Q43,P530,c(Q1048835)), NOT((Q7597846,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q43
relation P530
action find
entity Q7597846
relation P27
type Q1048835
[ANSWERS] have diplomatic relationships with Turkey and are not the countries of citizenship of Stan Reddick
{'AND': [['Q43', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q7597846', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?a WHERE { resource:Q43 property:P530 ?a . MINUS { resource:Q7597846 property:P27 ?a } . ?a rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany have diplomatic relationships with Turkey and are not the countries of citizenship of Stan Reddick
Australia Germany
action filter_type
action difference
action find
entity Turkey
relation diplomatic relation
action find
entity Stan Reddick
relation country of citizenship
type political territorial entity
{'AND': [['Turkey', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Stan Reddick', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?a WHERE { resource:Turkey property:diplomatic_relation ?a . MINUS { resource:Stan_Reddick property:country_of_citizenship ?a } . ?a rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13796 Q23887368
P47 P1532
Q1048835
USER
Which political territories do Gabon Olympic football team play for or are adjacent to Oristà ?
OR((Q23887368,P1532,c(Q1048835)), (Q13796,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q23887368
relation P1532
action find
entity Q13796
relation P47
type Q1048835
{'OR': [['Q23887368', 'P1532', {'concept': 'Q1048835'}], ['Q13796', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q23887368 property:P1532 ?o } UNION { resource:Q13796 property:P47 ?o } } . ?o rdf:type ontology:Q1048835 }
Oristà Gabon Olympic football team
action filter_type
action union
action find
entity Gabon Olympic football team
relation country for sport
action find
entity Oristà
relation shares border with
type political territorial entity
{'OR': [['Gabon Olympic football team', 'country for sport', {'concept': 'political territorial entity'}], ['Oristà', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Gabon_Olympic_football_team property:country_for_sport ?o } UNION { resource:Oristà property:shares_border_with ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16735 Q1000 Q15541 Q16729 Q13818 Q13799 Q13798 Q13814
SYSTEM
Santa Maria d'Oló, Gabon, Santa Maria de Merlès, Sant Feliu Sasserra, Sant Bartomeu del Grau, Montanyola, Olost, Prats de Lluçanès
Q16735 Q1000 Q15541 Q16729 Q13818 Q13799 Q13798 Q13814
OR((Q23887368,P1532,c(Q1048835)), (Q13796,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q23887368
relation P1532
action find
entity Q13796
relation P47
type Q1048835
Gabon Olympic football team play for the [ANSWERS] or are adjacent to Oristà
{'OR': [['Q23887368', 'P1532', {'concept': 'Q1048835'}], ['Q13796', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q23887368 property:P1532 ?o } UNION { resource:Q13796 property:P47 ?o } } . ?o rdf:type ontology:Q1048835 }
Santa Maria d'Oló Gabon Santa Maria de Merlès Sant Feliu Sasserra Sant Bartomeu del Grau Montanyola Olost Prats de Lluçanès
Gabon Olympic football team play for the Santa Maria d'Oló, Gabon, Santa Maria de Merlès, Sant Feliu Sasserra, Sant Bartomeu del Grau, Montanyola, Olost and Prats de Lluçanès or are adjacent to Oristà
Santa Maria d'Oló Gabon Santa Maria de Merlès Sant Feliu Sasserra Sant Bartomeu del Grau Montanyola Olost Prats de Lluçanès
action filter_type
action union
action find
entity Gabon Olympic football team
relation country for sport
action find
entity Oristà
relation shares border with
type political territorial entity
{'OR': [['Gabon Olympic football team', 'country for sport', {'concept': 'political territorial entity'}], ['Oristà', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Gabon_Olympic_football_team property:country_for_sport ?o } UNION { resource:Oristà property:shares_border_with ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P27
Q502895
USER
How many people are a citizen of that political territory ?
(c(Q502895),P27,Q1000)
[{'concept': 'Q502895'}, 'P27', 'Q1000']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P27 resource:Q1241571 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'country of citizenship', 'Gabon']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:country_of_citizenship resource:Gabon . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q13798
SYSTEM
Did you mean Olost ?
(c(Q502895),P27,Q16735) (c(Q502895),P27,Q1000) (c(Q502895),P27,Q15541) (c(Q502895),P27,Q16729) (c(Q502895),P27,Q13818) (c(Q502895),P27,Q13799) (c(Q502895),P27,Q13798) (c(Q502895),P27,Q13814)
[ANSWER]
[{'concept': 'Q502895'}, 'P27', 'Q16735'] [{'concept': 'Q502895'}, 'P27', 'Q1000'] [{'concept': 'Q502895'}, 'P27', 'Q15541'] [{'concept': 'Q502895'}, 'P27', 'Q16729'] [{'concept': 'Q502895'}, 'P27', 'Q13818'] [{'concept': 'Q502895'}, 'P27', 'Q13799'] [{'concept': 'Q502895'}, 'P27', 'Q13798'] [{'concept': 'Q502895'}, 'P27', 'Q13814']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P27 resource:Q1241571 . ?z rdf:type ontology:Q502895 }
Did you mean Olost ?
Olost
[{'concept': 'common name'}, 'country of citizenship', "Santa Maria d'Oló"] [{'concept': 'common name'}, 'country of citizenship', 'Gabon'] [{'concept': 'common name'}, 'country of citizenship', 'Santa Maria de Merlès'] [{'concept': 'common name'}, 'country of citizenship', 'Sant Feliu Sasserra'] [{'concept': 'common name'}, 'country of citizenship', 'Sant Bartomeu del Grau'] [{'concept': 'common name'}, 'country of citizenship', 'Montanyola'] [{'concept': 'common name'}, 'country of citizenship', 'Olost'] [{'concept': 'common name'}, 'country of citizenship', 'Prats de Lluçanès']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:country_of_citizenship resource:Gabon . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Gabon. Could you tell me the answer for that?
(c(Q502895),P27,Q1000)
Q1000
[{'concept': 'Q502895'}, 'P27', 'Q1000']
[{'concept': 'common name'}, 'country of citizenship', 'Gabon']
[]
SYSTEM
262
Q4775438 Q7660860 Q18611110 Q3173397 Q5257194 Q3287699 Q432444 Q23794648 Q7152821 Q3571612 Q5277484 Q1371373 Q3047939 Q6171114 Q1049012 Q1371465 Q3122048 Q273791 Q7358641 Q2029451 Q2861938 Q2412438 Q3367723 Q269045 Q3751087 Q3431053 Q8062295 Q7152177 Q775144 Q24210317 Q17635592 Q517100 Q438404 Q3426680 Q3104129 Q2864452 Q398187 Q2371741 Q2375987 Q6169303 Q3104131 Q16027715 Q11851296 Q2911012 Q44977 Q3371576 Q26856921 Q1400789 Q1100263 Q383696 Q3559904 Q3470962 Q7145416 Q9195788 Q27312506 Q776447 Q6170684 Q4704631 Q726748 Q6695782 Q4315318 Q5109884 Q26924447 Q6755856 Q4821122 Q4454052 Q3176104 Q11723668 Q3371762 Q7608349 Q16011528 Q7313777 Q12886343 Q7932126 Q3188402 Q21705082 Q18758217 Q6836567 Q3014508 Q4887900 Q18758227 Q18758223 Q18402411 Q256998 Q16235692 Q10791426 Q7783892 Q8063923 Q6168966 Q6711098 Q3456135 Q3371788 Q3507378 Q4720900 Q2899619 Q6170631 Q16232052 Q515666 Q5547082 Q13780454 Q3036209 Q3954880 Q7000777 Q57521 Q950928 Q3438499 Q5622022 Q6285804 Q3372673 Q4764310 Q3306560 Q18644507 Q4770611 Q2731862 Q5493498 Q3439785 Q11715807 Q3132974 Q6686436 Q2076817 Q270645 Q4759882 Q3218781 Q7192449 Q127219 Q670876 Q11881216 Q3455755 Q9267530 Q3056820 Q6787372 Q668233 Q3027127 Q3837574 Q4775513 Q18331811 Q6270727 Q7293990 Q6169030 Q21285406 Q21285407 Q19545157 Q3976424 Q31951 Q6484984 Q2662541 Q6313363 Q7114281 Q57856 Q7630023 Q2002140 Q16210433 Q6169939 Q5081176 Q427270 Q3592072 Q7629959 Q6775027 Q3679788 Q16733916 Q3301223 Q5897056 Q7149358 Q3049171 Q3612470 Q922877 Q898319 Q7416825 Q16644550 Q5086378 Q5128790 Q2848506 Q58208 Q16198866 Q2876233 Q6171473 Q16079023 Q6711125 Q610389 Q2250810 Q3867022 Q7665941 Q2531526 Q4696652 Q6008489 Q3384462 Q3384461 Q3430482 Q5373320 Q7191961 Q4705689 Q3157905 Q3185553 Q2466667 Q16145605 Q6555513 Q935352 Q6169582 Q3624323 Q667645 Q5493259 Q7931774 Q2926633 Q3383659 Q3383657 Q58286 Q7149456 Q2848287 Q3009947 Q3027621 Q20641656 Q6756384 Q7178365 Q5371552 Q2699271 Q6120375 Q2847914 Q443143 Q8062382 Q3631324 Q2562554 Q2959798 Q3122111 Q3122113 Q3183285 Q2053317 Q3048135 Q3259378 Q3371820 Q2072143 Q299629 Q573714 Q5373253 Q4924282 Q7145407 Q3524440 Q2655471 Q7520896 Q381515 Q6836261 Q3369733 Q810063 Q14792628 Q15614928 Q3057563 Q2030417 Q3121490 Q172083 Q5989746 Q2720046 Q2474222 Q3083801 Q544448 Q26308938 Q16199427 Q3361506 Q18822351 Q3808034 Q7660859 Q3724691 Q2102795 Q7361376
(c(Q502895),P27,Q1000)
[ANSWER]
[{'concept': 'Q502895'}, 'P27', 'Q1000']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P27 resource:Q1241571 . ?z rdf:type ontology:Q502895 }
Antoine Boussombo Sylvestre Ratanga Alain Da Costa Jean Marie Nguema Ndong Denis Dangue Réwaka Marc-Louis Ropivia Ruddy Zang Milama Monday Ossey Paul Okoumba d'Okwatsegue Yanne Bidonga Dimitri Edou Nzue Paulin Obame-Nguema Edmond Mouele Jean Marie M'ba Roguy Méyé Léon Mébiame Guy Nzouba-Ndama Edith Lucie Bongo Roger Mengue Mi Ekomie Yannick Mitoumba Armand Ossey Bruno Ecuele Manga Pascaline Bongo Ondimba Pierre Mamboundou Franck Engonga Richard Moulomba Yves Bitséki Moto Paul Malékou Stephane Lasme Florentin Moussavou Nadège Noële Ango-Obiang Marie-Noëlle Ada Edna Merey-Apinda René Ndemezo'o Obiang Germain Mba Arsène Do Marcolino Alexander N'Doumbou Audrey Koumba Justine Mintsa Jean-Félix Mouloungui Germain Ngoyo Moussavou Michel Mboussou Anaïs Oyembo Boris-Claude Nguéma Békalé Pierre-Emerick Aubameyang Paul Kessany Séraphin Moundounga Gilles Mbang Ondo Jean-Fidèle Diramba Jean Eyeghé Ndong Vincent de Paul Nyonda Samson Mbingui Patrice Tonda Constant Tamboucha Grégory Ngbwa Mintsa Fabrice Do Marcolino Jean François Ondo Guélor Kanga Etienne Alain Djissikadie Luc Marat Abyla Benjamin Ngoubou Christian Maronga Pacome Moubelet Boubeya Marc Saturnin Nan Nguéma Augustin Moussavou King Steeve Nguema Ndong Jeanne Manomba-Kombila Jean-Martin Mouloungui Paul Manon Stephanie Mouwandji Itsopault Louis Bigmann René Radembino Coniquet Gisèle Ongollo Vincent de Paul Gondjout Jules-Aristide Bourdes-Ogouliguende Solange Mabignath Johann Lengoualama Michel Souamas Daniel Ona Ondo Beni Kiendé Bonaventure Sokambi Romaric Rogombé Pahé Jean-Hilaire Aubame Johann Obiang Marc Ona Thibault Tchicaya Zacharie Myboto Jean-Baptiste Mintsa-Mi-Mba Léon Mbou Yembi Rémy Ebanega Paul-Marie Yembit Sylvie Ntsame Alexandre Sambat Bertrand Mbatchi Jean Engone Benjamin Zé Ondo Paul Biyoghé Mba Georgette Koko Mario Lemina Donatien Mavoungou Selim Haroun Nzé Eric Otogo-Castane Ali Bongo Ondimba Paul Gondjout Rodrigue Moundounga Guy-Bertrand Mapangou Joseph Ngoua Paulin Obiang Ndong Angèle Rawiri Merlin Tandjigora Janis Otsiemi Anselme Delicat Stéphane N'Guéma Françoise Makaya Roi Glass Jacques Deckousshoud Henri Junior Ndong Louis-Gabriel Pambo Cédric Boussoughou Rose Francine Rogombé André Dieudonné Berre Laure Olga Gondjout Pierre Sockat Casimir Oyé-Mba Didier Ovono Marlyse Nsourou Régis Manon Germain Mendome Ernest Akouassaga Mathurin Anghiley Jean-François Ntoutoume Emane Didier Ibrahim Ndong Louis-Gaston Mayila Antoine Mboumbou Miyakou Fargas Jean-Baptiste Abessolo Raphael Mangouala Jean-Boniface Assélé Erwin N'Guema Obame Duval N'Zembi Myriam Mihindou Stevy Nzambe André Biyogo Poko Landry Poulangoye Didjob Divungi Di Ndinge Junior Mikamou Owanto Raymond Ndong Sima Stéphane N'Zue Mba Shiva N'Zigou Gauthier Okawe Jean-Pierre Nguema Charles Mve Ellah Lévy Madinda Etienne Bito'o Stéphane Achy Martin Bongo Claude Albert Mbourounot Randal Oto’o Maurice Okoumba-Nkoghé Honorine Dossou Naki Paul Bie-Eyene Egide Boundono Simangoye Allen Nono Georges Rawiri Thierry Issiémou Sandrine Ilendou Jann Halexander Charly Moussono Claude Damas Ozimo André Raponda Walker Paul Toungui Mélanie Engoang Aïello Batonon Jean Rémy Ayouné Pierre Auguste Avaro Léonard Andjembé Odette Mistoul Aymard Moro Mvé Muller Dinda Sébastien Mamboundou Mouyama Pierre Aubameyang Aida Touré Imunga Ivanga Pierre-Claver Zeng Ebome Pierre Claver Maganga Moussavou Richard Auguste Onouviet Emmanuel Ondo Methogo Pierre-André Kombila Alain Ndjoubi Ossami Jacques-Denis Tsanga Joseph Rendjambé Eric Mouloungui Jules-Marius Ogouebandja Lionel Baguissi Georges Akieremy Jean-Marie Adzé Oliver N'Goma Arsène Copa François Engongah Owono Vincent Essone Mengue Bruno Ben Moubamba Pierre Akendengué Pierre Alain Mounguengui Jean Ping Paul Boundoukou-Latha André Mba Obame Cédric Moubamba Dieudonné Londo Yannick Larry Marcellin Mve Ebang Petit Jesus Ngnitedem Emile Doumba Georges Ambourouet Jacques Adiahénot André Gustave Anguilé Patience Dabany Yvette Rekangali Axel Meye John Tshibumbu Charles Mensah Guy Roger Nzamba Guy Rossatanga-Rignault Jonas Ogandaga Félix Siby Théodore Nzue Nguema Lord Ekomy Ndong Paul Mba Abessole Bruno Zita Mbanangoyé Léon M'ba Anthony Obame Emmanuel Issoze-Ngondet Blaise Louembe Patrice Otha Thierry Mouyouma Faustin Boukoubi Simplice Guedet Manzela Daniel Cousin Michel Akouloua Patrick N'Guema N'Dong Basile Mvé Engone Jean Divassa Nyama Malick Evouna Erwin Nguéma Obame Romeo Lemboumba Guy-Roger N'Zeng Omar Bongo Idriss Ngari Georges Aleka Damas Frédéric Bulot François Amégasse Guy Tchingoma Mathias Otounga Ossibadjouo Viviane Biviga Wilfried Bingangoye Aaron Appindangoyé Jerry Obiang Sylvestre Oyouomi Emmanuel Ndong Henry Antchouet Rolly Lumbala
262
[{'concept': 'common name'}, 'country of citizenship', 'Gabon']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:country_of_citizenship resource:Gabon . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic relations with approximately 4 political territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 4
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?s ) WHERE { ?h property:P530 ?z . ?h rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?s = 4 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?s ) WHERE { ?h property:diplomatic_relation ?z . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?s = 4 ) }
[]
political territorial entity designation for an administrative territorial entity
Q155 Q30 Q159
SYSTEM
Brazil, United States of America, Russia
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 4
[ANSWERS] have diplomatic relations with approximately 4 political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?s ) WHERE { ?h property:P530 ?z . ?h rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?s = 4 ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
Brazil, United States of America and Russia have diplomatic relations with approximately 4 political territories
Brazil United States of America Russia
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?s ) WHERE { ?h property:diplomatic_relation ?z . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?s = 4 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P36
Q515 Q56061
USER
How many cities and administrative territories are the capitals of that administrative territory ?
(Q155,P36,c(Q515)) (Q155,P36,c(Q56061)) (Q155,P36,c(Q515)) (Q155,P36,c(Q56061)) (Q30,P36,c(Q515)) (Q30,P36,c(Q56061)) (Q159,P36,c(Q515)) (Q159,P36,c(Q56061))
['Q155', 'P36', {'concept': 'Q515'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q155', 'P36', {'concept': 'Q515'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q515'}] ['Q30', 'P36', {'concept': 'Q56061'}] ['Q159', 'P36', {'concept': 'Q515'}] ['Q159', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q21475816 property:Q8137 ?z } UNION { resource:Q21475816 property:Q8137 ?y } UNION { resource:Q21475816 property:Q8137 ?z } UNION { resource:Q21475816 property:Q8137 ?y } UNION { resource:Q30 property:Q8137 ?z } UNION { resource:Q30 property:Q8137 ?y } UNION { resource:Q24058892 property:Q8137 ?z } UNION { resource:Q24058892 property:Q8137 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
['Brazil', 'capital', {'concept': 'city'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['Brazil', 'capital', {'concept': 'city'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'city'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}] ['Russia', 'capital', {'concept': 'city'}] ['Russia', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Brazil property:capital ?z } UNION { resource:Brazil property:capital ?y } UNION { resource:Brazil property:capital ?z } UNION { resource:Brazil property:capital ?y } UNION { resource:United_States_of_America property:capital ?z } UNION { resource:United_States_of_America property:capital ?y } UNION { resource:Russia property:capital ?z } UNION { resource:Russia property:capital ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
city administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q30
SYSTEM
Did you mean United States of America ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q21475816 property:Q8137 ?z } UNION { resource:Q21475816 property:Q8137 ?y } UNION { resource:Q21475816 property:Q8137 ?z } UNION { resource:Q21475816 property:Q8137 ?y } UNION { resource:Q30 property:Q8137 ?z } UNION { resource:Q30 property:Q8137 ?y } UNION { resource:Q24058892 property:Q8137 ?z } UNION { resource:Q24058892 property:Q8137 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
Did you mean United States of America ?
United States of America
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Brazil property:capital ?z } UNION { resource:Brazil property:capital ?y } UNION { resource:Brazil property:capital ?z } UNION { resource:Brazil property:capital ?y } UNION { resource:United_States_of_America property:capital ?z } UNION { resource:United_States_of_America property:capital ?y } UNION { resource:Russia property:capital ?z } UNION { resource:Russia property:capital ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Brazil. Could you tell me the answer for that?
(Q155,P36,c(Q515)) (Q155,P36,c(Q56061)) (Q155,P36,c(Q515)) (Q155,P36,c(Q56061)) (Q30,P36,c(Q515)) (Q30,P36,c(Q56061)) (Q159,P36,c(Q515)) (Q159,P36,c(Q56061))
Q155
['Q155', 'P36', {'concept': 'Q515'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q155', 'P36', {'concept': 'Q515'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q515'}] ['Q30', 'P36', {'concept': 'Q56061'}] ['Q159', 'P36', {'concept': 'Q515'}] ['Q159', 'P36', {'concept': 'Q56061'}]
['Brazil', 'capital', {'concept': 'city'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['Brazil', 'capital', {'concept': 'city'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'city'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}] ['Russia', 'capital', {'concept': 'city'}] ['Russia', 'capital', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
1 cities and 1 administrative territories
Q8678 Q2844
(Q155,P36,c(Q515)) (Q155,P36,c(Q56061)) (Q155,P36,c(Q515)) (Q155,P36,c(Q56061)) (Q30,P36,c(Q515)) (Q30,P36,c(Q56061)) (Q159,P36,c(Q515)) (Q159,P36,c(Q56061))
[ANSWER]
['Q155', 'P36', {'concept': 'Q515'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q155', 'P36', {'concept': 'Q515'}] ['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q515'}] ['Q30', 'P36', {'concept': 'Q56061'}] ['Q159', 'P36', {'concept': 'Q515'}] ['Q159', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q21475816 property:Q8137 ?z } UNION { resource:Q21475816 property:Q8137 ?y } UNION { resource:Q21475816 property:Q8137 ?z } UNION { resource:Q21475816 property:Q8137 ?y } UNION { resource:Q30 property:Q8137 ?z } UNION { resource:Q30 property:Q8137 ?y } UNION { resource:Q24058892 property:Q8137 ?z } UNION { resource:Q24058892 property:Q8137 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
Rio de Janeiro Brasília
1 cities and 1 administrative territories
['Brazil', 'capital', {'concept': 'city'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['Brazil', 'capital', {'concept': 'city'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'city'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}] ['Russia', 'capital', {'concept': 'city'}] ['Russia', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Brazil property:capital ?z } UNION { resource:Brazil property:capital ?y } UNION { resource:Brazil property:capital ?z } UNION { resource:Brazil property:capital ?y } UNION { resource:United_States_of_America property:capital ?z } UNION { resource:United_States_of_America property:capital ?y } UNION { resource:Russia property:capital ?z } UNION { resource:Russia property:capital ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]