Simple Question (Direct)
Simple Question
Q1191177
P735
Q82799
USER
What is the firstname of Vlada Roslyakova ?
(Q1191177,P735,c(Q82799))
action filter_type
action find
entity Q1191177
relation P735
type Q82799
['Q1191177', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q1191177 property:P735 ?d . ?d rdf:type ontology:Q82799 }
Vlada Roslyakova
action filter_type
action find
entity Vlada Roslyakova
relation given name
type name
['Vlada Roslyakova', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Vlada_Roslyakova property:given_name ?d . ?d rdf:type ontology:name }
[]
name
Q7938169
SYSTEM
Vlada
Q7938169
(Q1191177,P735,c(Q82799))
action filter_type
action find
entity Q1191177
relation P735
type Q82799
The firstname of [ANSWER] Roslyakova is the [ANSWER]
['Q1191177', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q1191177 property:P735 ?d . ?d rdf:type ontology:Q82799 }
Vlada
The firstname of Vlada Roslyakova is the Vlada
Vlada
action filter_type
action find
entity Vlada Roslyakova
relation given name
type name
['Vlada Roslyakova', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Vlada_Roslyakova property:given_name ?d . ?d rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q7938169 Q16278285
P735
Q502895
USER
How many people have Vlada or Laverne as their given name ?
(c(Q502895),P735,Q7938169) (c(Q502895),P735,Q16278285)
action count
action union
action filter_type
action find_reverse
entity Q7938169
relation P735
type Q502895
action filter_type
action find_reverse
entity Q16278285
relation P735
type Q502895
[{'concept': 'Q502895'}, 'P735', 'Q7938169'] [{'concept': 'Q502895'}, 'P735', 'Q16278285']
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { ?k rdf:type ontology:Q502895 . ?k property:P735 resource:Q7938169 } UNION { ?k property:P735 resource:Q16278285 . ?k rdf:type ontology:Q502895 } }
Vlada Laverne
action count
action union
action filter_type
action find_reverse
entity Vlada
relation given name
type common name
action filter_type
action find_reverse
entity Laverne
relation given name
type common name
[{'concept': 'common name'}, 'given name', 'Vlada'] [{'concept': 'common name'}, 'given name', 'Laverne']
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { ?k rdf:type ontology:common_name . ?k property:given_name resource:Vlada } UNION { ?k property:given_name resource:Laverne . ?k rdf:type ontology:common_name } }
[]
common name
SYSTEM
7
Q444378 Q1191177 Q6502596 Q246472 Q21066035 Q2542989 Q947433
(c(Q502895),P735,Q7938169) (c(Q502895),P735,Q16278285)
action count
action union
action filter_type
action find_reverse
entity Q7938169
relation P735
type Q502895
action filter_type
action find_reverse
entity Q16278285
relation P735
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P735', 'Q7938169'] [{'concept': 'Q502895'}, 'P735', 'Q16278285']
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { ?k rdf:type ontology:Q502895 . ?k property:P735 resource:Q7938169 } UNION { ?k property:P735 resource:Q16278285 . ?k rdf:type ontology:Q502895 } }
Vlada Avramov Vlada Roslyakova Laverne Cox Vlada Vukoičić Vlada Tatsenko Vlada Stošić Vlada Jovanović
7
action count
action union
action filter_type
action find_reverse
entity Vlada
relation given name
type common name
action filter_type
action find_reverse
entity Laverne
relation given name
type common name
[{'concept': 'common name'}, 'given name', 'Vlada'] [{'concept': 'common name'}, 'given name', 'Laverne']
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { ?k rdf:type ontology:common_name . ?k property:given_name resource:Vlada } UNION { ?k property:given_name resource:Laverne . ?k rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1191177
P1884
Q1075
USER
What best describes hair of Vlada Roslyakova ?
(Q1191177,P1884,c(Q1075))
action filter_type
action find
entity Q1191177
relation P1884
type Q1075
['Q1191177', 'P1884', {'concept': 'Q1075'}]
SELECT DISTINCT ?o WHERE { resource:Q1191177 property:P1884 ?o . ?o rdf:type ontology:Q1075 }
Vlada Roslyakova
action filter_type
action find
entity Vlada Roslyakova
relation hair color
type color
['Vlada Roslyakova', 'hair color', {'concept': 'color'}]
SELECT DISTINCT ?o WHERE { resource:Vlada_Roslyakova property:hair_color ?o . ?o rdf:type ontology:color }
[]
color
Q202466
SYSTEM
blonde
Q202466
(Q1191177,P1884,c(Q1075))
action filter_type
action find
entity Q1191177
relation P1884
type Q1075
[ANSWER] best describes hair of Vlada Roslyakova
['Q1191177', 'P1884', {'concept': 'Q1075'}]
SELECT DISTINCT ?o WHERE { resource:Q1191177 property:P1884 ?o . ?o rdf:type ontology:Q1075 }
blonde
Blonde best describes hair of Vlada Roslyakova
blonde
action filter_type
action find
entity Vlada Roslyakova
relation hair color
type color
['Vlada Roslyakova', 'hair color', {'concept': 'color'}]
SELECT DISTINCT ?o WHERE { resource:Vlada_Roslyakova property:hair_color ?o . ?o rdf:type ontology:color }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1191177
P21
Q290
USER
Which sex does Vlada Roslyakova possess ?
(Q1191177,P21,c(Q290))
action filter_type
action find
entity Q1191177
relation P21
type Q290
['Q1191177', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q1191177 property:P21 ?a . ?a rdf:type ontology:Q290 }
Vlada Roslyakova
action filter_type
action find
entity Vlada Roslyakova
relation gender
type sex
['Vlada Roslyakova', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Vlada_Roslyakova property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1191177,P21,c(Q290))
action filter_type
action find
entity Q1191177
relation P21
type Q290
Vlada Roslyakova possesses a [ANSWER]
['Q1191177', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q1191177 property:P21 ?a . ?a rdf:type ontology:Q290 }
female
Vlada Roslyakova possesses a female
female
action filter_type
action find
entity Vlada Roslyakova
relation gender
type sex
['Vlada Roslyakova', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Vlada_Roslyakova property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1191177
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q6581072,P27,c(Q15617994))
action filter_type
action find
entity Q1191177
relation P27
type Q15617994
['Q6581072', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1191177 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Vlada Roslyakova
action filter_type
action find
entity Vlada Roslyakova
relation country of citizenship
type designation for an administrative territorial entity
['female', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Vlada_Roslyakova property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q6581072,P27,c(Q15617994))
action filter_type
action find
entity Q1191177
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q6581072', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1191177 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Russia
The Russia is that person a civilian of
Russia
action filter_type
action find
entity Vlada Roslyakova
relation country of citizenship
type designation for an administrative territorial entity
['female', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Vlada_Roslyakova property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q16278285
P27 P735
Q502895
USER
Which people have Laverne as first name and are civilians of United States of America ?
AND((c(Q502895),P735,Q16278285), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q16278285
relation P735
action find_reverse
entity Q30
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P735', 'Q16278285'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?b WHERE { ?b property:P735 resource:Q16278285 . ?b property:P27 resource:Q30 . ?b rdf:type ontology:Q502895 }
United States of America Laverne
action filter_type
action intersection
action find_reverse
entity Laverne
relation given name
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'given name', 'Laverne'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?b WHERE { ?b property:given_name resource:Laverne . ?b property:country_of_citizenship resource:United_States_of_America . ?b rdf:type ontology:common_name }
[]
common name
Q6502596
SYSTEM
Laverne Cox
Q6502596
AND((c(Q502895),P735,Q16278285), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q16278285
relation P735
action find_reverse
entity Q30
relation P27
type Q502895
[ANSWER] have Laverne as first name and are civilians of United States of America
{'AND': [[{'concept': 'Q502895'}, 'P735', 'Q16278285'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?b WHERE { ?b property:P735 resource:Q16278285 . ?b property:P27 resource:Q30 . ?b rdf:type ontology:Q502895 }
Laverne Cox
Laverne Cox have Laverne as first name and are civilians of United States of America
Laverne Cox
action filter_type
action intersection
action find_reverse
entity Laverne
relation given name
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'given name', 'Laverne'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?b WHERE { ?b property:given_name resource:Laverne . ?b property:country_of_citizenship resource:United_States_of_America . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q1075 Q3305213 Q11060274
USER
How many colors are expressed in atmost 6 paintings and prints ?
(c(Q3305213)|c(Q11060274),P180,c(Q1075))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q1075
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q1075
type Q11060274
value 6
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?w ) WHERE { { ?i rdf:type ontology:Q1075 . ?g rdf:type ontology:Q11060274 . ?g property:P180 ?i } UNION { ?g property:P180 ?i . ?i rdf:type ontology:Q1075 . ?g rdf:type ontology:Q3305213 } } GROUP BY ?i } . FILTER ( ?w <= 6 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type color
type painting
action find_reverse_tuple_counts
relation depicts
type color
type print
value 6
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?w ) WHERE { { ?i rdf:type ontology:color . ?g rdf:type ontology:print . ?g property:depicts ?i } UNION { ?g property:depicts ?i . ?i rdf:type ontology:color . ?g rdf:type ontology:painting } } GROUP BY ?i } . FILTER ( ?w <= 6 ) }
[]
color painting print
SYSTEM
13
Q3142 Q6933946 Q18661358 Q4930092 Q2419551 Q943 Q1088 Q1922956 Q3133 Q2906904 Q152357 Q1145422 Q23445
(c(Q3305213)|c(Q11060274),P180,c(Q1075))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q1075
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q1075
type Q11060274
value 6
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?w ) WHERE { { ?i rdf:type ontology:Q1075 . ?g rdf:type ontology:Q11060274 . ?g property:P180 ?i } UNION { ?g property:P180 ?i . ?i rdf:type ontology:Q1075 . ?g rdf:type ontology:Q3305213 } } GROUP BY ?i } . FILTER ( ?w <= 6 ) }
red white hair strawberry blond hair blue hair auburn yellow blue black hair green Titian hair red hair gray black
13
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type color
type painting
action find_reverse_tuple_counts
relation depicts
type color
type print
value 6
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?w ) WHERE { { ?i rdf:type ontology:color . ?g rdf:type ontology:print . ?g property:depicts ?i } UNION { ?g property:depicts ?i . ?i rdf:type ontology:color . ?g rdf:type ontology:painting } } GROUP BY ?i } . FILTER ( ?w <= 6 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6502596
P1412
Q34770
USER
Which language can Laverne Cox read ?
(Q6502596,P1412,c(Q34770))
action filter_type
action find
entity Q6502596
relation P1412
type Q34770
['Q6502596', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q6502596 property:P1412 ?i . ?i rdf:type ontology:Q34770 }
Laverne Cox
action filter_type
action find
entity Laverne Cox
relation languages spoken, written or signed
type language
['Laverne Cox', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Laverne_Cox property:languages_spoken,_written_or_signed ?i . ?i rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6502596,P1412,c(Q34770))
action filter_type
action find
entity Q6502596
relation P1412
type Q34770
Laverne Cox can read in [ANSWER]
['Q6502596', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q6502596 property:P1412 ?i . ?i rdf:type ontology:Q34770 }
English
Laverne Cox can read in English
English
action filter_type
action find
entity Laverne Cox
relation languages spoken, written or signed
type language
['Laverne Cox', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Laverne_Cox property:languages_spoken,_written_or_signed ?i . ?i rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1860 Q7746758
P364
Q838948
USER
Was The Legend of Pancho Barnes and the Happy Bottom Riding Club originally created in that one language ?
(Q7746758,P364,Q1860)
action is_in
entity Q1860
action find
entity Q7746758
relation P364
['Q7746758', 'P364', 'Q1860']
ASK WHERE { resource:Q7746758 property:P364 resource:Q1860 }
English The Legend of Pancho Barnes and the Happy Bottom Riding Club
action is_in
entity English
action find
entity The Legend of Pancho Barnes and the Happy Bottom Riding Club
relation original language of work
['The Legend of Pancho Barnes and the Happy Bottom Riding Club', 'original language of work', 'English']
ASK WHERE { resource:The_Legend_of_Pancho_Barnes_and_the_Happy_Bottom_Riding_Club property:original_language_of_work resource:English }
[]
work of art
SYSTEM
YES
(Q7746758,P364,Q1860)
action is_in
entity Q1860
action find
entity Q7746758
relation P364
[ANSWER]
['Q7746758', 'P364', 'Q1860']
ASK WHERE { resource:Q7746758 property:P364 resource:Q1860 }
Yes
action is_in
entity English
action find
entity The Legend of Pancho Barnes and the Happy Bottom Riding Club
relation original language of work
['The Legend of Pancho Barnes and the Happy Bottom Riding Club', 'original language of work', 'English']
ASK WHERE { resource:The_Legend_of_Pancho_Barnes_and_the_Happy_Bottom_Riding_Club property:original_language_of_work resource:English }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6716 Q30
P47
Q15617994
USER
Which administrative territories are adjacent to United States of America or Grosseto ?
OR((Q30,P47,c(Q15617994)), (Q6716,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q6716
relation P47
type Q15617994
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q6716', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q30 property:P47 ?e } UNION { resource:Q6716 property:P47 ?e } } . ?e rdf:type ontology:Q15617994 }
Grosseto United States of America
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Grosseto
relation shares border with
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Grosseto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:United_States_of_America property:shares_border_with ?e } UNION { resource:Grosseto property:shares_border_with ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q214691 Q188480 Q717 Q241 Q188598 Q683 Q786 Q159 Q702 Q96
SYSTEM
Some of them are Magliano in Toscana, Campagnatico, Venezuela, Cuba, Gavorrano, Samoa, Dominican Republic, Russia, Federated States of Micronesia, Mexico
Q702 Q804 Q159 Q683 Q96 Q214691 Q786 Q241 Q17 Q710 Q678 Q188547 Q717 Q215116 Q214997 Q188480 Q790 Q188598
OR((Q30,P47,c(Q15617994)), (Q6716,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q6716
relation P47
type Q15617994
[ANSWERS] are adjacent to United States of America or Grosseto
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q6716', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q30 property:P47 ?e } UNION { resource:Q6716 property:P47 ?e } } . ?e rdf:type ontology:Q15617994 }
Federated States of Micronesia Panama Russia Samoa Mexico Magliano in Toscana Dominican Republic Cuba Japan Kiribati Tonga Castiglione della Pescaia Venezuela Scansano Roccastrada Campagnatico Haiti Gavorrano
Magliano in Toscana, Campagnatico, Venezuela, Cuba, Gavorrano, Samoa, Dominican Republic, Russia, Federated States of Micronesia and Mexico are adjacent to United States of America or Grosseto
Magliano in Toscana Campagnatico Venezuela Cuba Gavorrano Samoa Dominican Republic Russia Federated States of Micronesia Mexico
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Grosseto
relation shares border with
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Grosseto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:United_States_of_America property:shares_border_with ?e } UNION { resource:Grosseto property:shares_border_with ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P463
Q43229 Q484652
USER
How many organizations or international organizations were that administrative territory a member of ?
(Q786,P463,c(Q43229)) (Q786,P463,c(Q484652)) (Q214691,P463,c(Q43229)) (Q214691,P463,c(Q484652)) (Q188480,P463,c(Q43229)) (Q188480,P463,c(Q484652)) (Q717,P463,c(Q43229)) (Q717,P463,c(Q484652)) (Q241,P463,c(Q43229)) (Q241,P463,c(Q484652)) (Q188598,P463,c(Q43229)) (Q188598,P463,c(Q484652)) (Q683,P463,c(Q43229)) (Q683,P463,c(Q484652)) (Q786,P463,c(Q43229)) (Q786,P463,c(Q484652)) (Q159,P463,c(Q43229)) (Q159,P463,c(Q484652)) (Q702,P463,c(Q43229)) (Q702,P463,c(Q484652)) (Q96,P463,c(Q43229)) (Q96,P463,c(Q484652))
['Q786', 'P463', {'concept': 'Q43229'}] ['Q786', 'P463', {'concept': 'Q484652'}] ['Q214691', 'P463', {'concept': 'Q43229'}] ['Q214691', 'P463', {'concept': 'Q484652'}] ['Q188480', 'P463', {'concept': 'Q43229'}] ['Q188480', 'P463', {'concept': 'Q484652'}] ['Q717', 'P463', {'concept': 'Q43229'}] ['Q717', 'P463', {'concept': 'Q484652'}] ['Q241', 'P463', {'concept': 'Q43229'}] ['Q241', 'P463', {'concept': 'Q484652'}] ['Q188598', 'P463', {'concept': 'Q43229'}] ['Q188598', 'P463', {'concept': 'Q484652'}] ['Q683', 'P463', {'concept': 'Q43229'}] ['Q683', 'P463', {'concept': 'Q484652'}] ['Q786', 'P463', {'concept': 'Q43229'}] ['Q786', 'P463', {'concept': 'Q484652'}] ['Q159', 'P463', {'concept': 'Q43229'}] ['Q159', 'P463', {'concept': 'Q484652'}] ['Q702', 'P463', {'concept': 'Q43229'}] ['Q702', 'P463', {'concept': 'Q484652'}] ['Q96', 'P463', {'concept': 'Q43229'}] ['Q96', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q786 property:P463 ?z } UNION { resource:Q786 property:P463 ?y } UNION { resource:Q214691 property:P463 ?z } UNION { resource:Q214691 property:P463 ?y } UNION { resource:Q188480 property:P463 ?z } UNION { resource:Q188480 property:P463 ?y } UNION { resource:Q1180667 property:P463 ?z } UNION { resource:Q1180667 property:P463 ?y } UNION { resource:Q241 property:P463 ?z } UNION { resource:Q241 property:P463 ?y } UNION { resource:Q188598 property:P463 ?z } UNION { resource:Q188598 property:P463 ?y } UNION { resource:Q2213899 property:P463 ?z } UNION { resource:Q2213899 property:P463 ?y } UNION { resource:Q786 property:P463 ?z } UNION { resource:Q786 property:P463 ?y } UNION { resource:Q24058892 property:P463 ?z } UNION { resource:Q24058892 property:P463 ?y } UNION { resource:Q702 property:P463 ?z } UNION { resource:Q702 property:P463 ?y } UNION { resource:Q2294975 property:P463 ?z } UNION { resource:Q2294975 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q484652 }
['Dominican Republic', 'member of', {'concept': 'organization'}] ['Dominican Republic', 'member of', {'concept': 'international organization'}] ['Magliano in Toscana', 'member of', {'concept': 'organization'}] ['Magliano in Toscana', 'member of', {'concept': 'international organization'}] ['Campagnatico', 'member of', {'concept': 'organization'}] ['Campagnatico', 'member of', {'concept': 'international organization'}] ['Venezuela', 'member of', {'concept': 'organization'}] ['Venezuela', 'member of', {'concept': 'international organization'}] ['Cuba', 'member of', {'concept': 'organization'}] ['Cuba', 'member of', {'concept': 'international organization'}] ['Gavorrano', 'member of', {'concept': 'organization'}] ['Gavorrano', 'member of', {'concept': 'international organization'}] ['Samoa', 'member of', {'concept': 'organization'}] ['Samoa', 'member of', {'concept': 'international organization'}] ['Dominican Republic', 'member of', {'concept': 'organization'}] ['Dominican Republic', 'member of', {'concept': 'international organization'}] ['Russia', 'member of', {'concept': 'organization'}] ['Russia', 'member of', {'concept': 'international organization'}] ['Federated States of Micronesia', 'member of', {'concept': 'organization'}] ['Federated States of Micronesia', 'member of', {'concept': 'international organization'}] ['Mexico', 'member of', {'concept': 'organization'}] ['Mexico', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Dominican_Republic property:member_of ?z } UNION { resource:Dominican_Republic property:member_of ?y } UNION { resource:Magliano_in_Toscana property:member_of ?z } UNION { resource:Magliano_in_Toscana property:member_of ?y } UNION { resource:Campagnatico property:member_of ?z } UNION { resource:Campagnatico property:member_of ?y } UNION { resource:Venezuela property:member_of ?z } UNION { resource:Venezuela property:member_of ?y } UNION { resource:Cuba property:member_of ?z } UNION { resource:Cuba property:member_of ?y } UNION { resource:Gavorrano property:member_of ?z } UNION { resource:Gavorrano property:member_of ?y } UNION { resource:Samoa property:member_of ?z } UNION { resource:Samoa property:member_of ?y } UNION { resource:Dominican_Republic property:member_of ?z } UNION { resource:Dominican_Republic property:member_of ?y } UNION { resource:Russia property:member_of ?z } UNION { resource:Russia property:member_of ?y } UNION { resource:Federated_States_of_Micronesia property:member_of ?z } UNION { resource:Federated_States_of_Micronesia property:member_of ?y } UNION { resource:Mexico property:member_of ?z } UNION { resource:Mexico property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:international_organization }
[]
organization international organization
Quantitative|Count|Mult. entity type|Clarification
Q188598
SYSTEM
Did you mean Gavorrano ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q786 property:P463 ?z } UNION { resource:Q786 property:P463 ?y } UNION { resource:Q214691 property:P463 ?z } UNION { resource:Q214691 property:P463 ?y } UNION { resource:Q188480 property:P463 ?z } UNION { resource:Q188480 property:P463 ?y } UNION { resource:Q1180667 property:P463 ?z } UNION { resource:Q1180667 property:P463 ?y } UNION { resource:Q241 property:P463 ?z } UNION { resource:Q241 property:P463 ?y } UNION { resource:Q188598 property:P463 ?z } UNION { resource:Q188598 property:P463 ?y } UNION { resource:Q2213899 property:P463 ?z } UNION { resource:Q2213899 property:P463 ?y } UNION { resource:Q786 property:P463 ?z } UNION { resource:Q786 property:P463 ?y } UNION { resource:Q24058892 property:P463 ?z } UNION { resource:Q24058892 property:P463 ?y } UNION { resource:Q702 property:P463 ?z } UNION { resource:Q702 property:P463 ?y } UNION { resource:Q2294975 property:P463 ?z } UNION { resource:Q2294975 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q484652 }
Did you mean Gavorrano ?
Gavorrano
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Dominican_Republic property:member_of ?z } UNION { resource:Dominican_Republic property:member_of ?y } UNION { resource:Magliano_in_Toscana property:member_of ?z } UNION { resource:Magliano_in_Toscana property:member_of ?y } UNION { resource:Campagnatico property:member_of ?z } UNION { resource:Campagnatico property:member_of ?y } UNION { resource:Venezuela property:member_of ?z } UNION { resource:Venezuela property:member_of ?y } UNION { resource:Cuba property:member_of ?z } UNION { resource:Cuba property:member_of ?y } UNION { resource:Gavorrano property:member_of ?z } UNION { resource:Gavorrano property:member_of ?y } UNION { resource:Samoa property:member_of ?z } UNION { resource:Samoa property:member_of ?y } UNION { resource:Dominican_Republic property:member_of ?z } UNION { resource:Dominican_Republic property:member_of ?y } UNION { resource:Russia property:member_of ?z } UNION { resource:Russia property:member_of ?y } UNION { resource:Federated_States_of_Micronesia property:member_of ?z } UNION { resource:Federated_States_of_Micronesia property:member_of ?y } UNION { resource:Mexico property:member_of ?z } UNION { resource:Mexico property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:international_organization }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Dominican Republic. Could you tell me the answer for that?
(Q786,P463,c(Q43229)) (Q786,P463,c(Q484652)) (Q214691,P463,c(Q43229)) (Q214691,P463,c(Q484652)) (Q188480,P463,c(Q43229)) (Q188480,P463,c(Q484652)) (Q717,P463,c(Q43229)) (Q717,P463,c(Q484652)) (Q241,P463,c(Q43229)) (Q241,P463,c(Q484652)) (Q188598,P463,c(Q43229)) (Q188598,P463,c(Q484652)) (Q683,P463,c(Q43229)) (Q683,P463,c(Q484652)) (Q786,P463,c(Q43229)) (Q786,P463,c(Q484652)) (Q159,P463,c(Q43229)) (Q159,P463,c(Q484652)) (Q702,P463,c(Q43229)) (Q702,P463,c(Q484652)) (Q96,P463,c(Q43229)) (Q96,P463,c(Q484652))
Q786
['Q786', 'P463', {'concept': 'Q43229'}] ['Q786', 'P463', {'concept': 'Q484652'}] ['Q214691', 'P463', {'concept': 'Q43229'}] ['Q214691', 'P463', {'concept': 'Q484652'}] ['Q188480', 'P463', {'concept': 'Q43229'}] ['Q188480', 'P463', {'concept': 'Q484652'}] ['Q717', 'P463', {'concept': 'Q43229'}] ['Q717', 'P463', {'concept': 'Q484652'}] ['Q241', 'P463', {'concept': 'Q43229'}] ['Q241', 'P463', {'concept': 'Q484652'}] ['Q188598', 'P463', {'concept': 'Q43229'}] ['Q188598', 'P463', {'concept': 'Q484652'}] ['Q683', 'P463', {'concept': 'Q43229'}] ['Q683', 'P463', {'concept': 'Q484652'}] ['Q786', 'P463', {'concept': 'Q43229'}] ['Q786', 'P463', {'concept': 'Q484652'}] ['Q159', 'P463', {'concept': 'Q43229'}] ['Q159', 'P463', {'concept': 'Q484652'}] ['Q702', 'P463', {'concept': 'Q43229'}] ['Q702', 'P463', {'concept': 'Q484652'}] ['Q96', 'P463', {'concept': 'Q43229'}] ['Q96', 'P463', {'concept': 'Q484652'}]
['Dominican Republic', 'member of', {'concept': 'organization'}] ['Dominican Republic', 'member of', {'concept': 'international organization'}] ['Magliano in Toscana', 'member of', {'concept': 'organization'}] ['Magliano in Toscana', 'member of', {'concept': 'international organization'}] ['Campagnatico', 'member of', {'concept': 'organization'}] ['Campagnatico', 'member of', {'concept': 'international organization'}] ['Venezuela', 'member of', {'concept': 'organization'}] ['Venezuela', 'member of', {'concept': 'international organization'}] ['Cuba', 'member of', {'concept': 'organization'}] ['Cuba', 'member of', {'concept': 'international organization'}] ['Gavorrano', 'member of', {'concept': 'organization'}] ['Gavorrano', 'member of', {'concept': 'international organization'}] ['Samoa', 'member of', {'concept': 'organization'}] ['Samoa', 'member of', {'concept': 'international organization'}] ['Dominican Republic', 'member of', {'concept': 'organization'}] ['Dominican Republic', 'member of', {'concept': 'international organization'}] ['Russia', 'member of', {'concept': 'organization'}] ['Russia', 'member of', {'concept': 'international organization'}] ['Federated States of Micronesia', 'member of', {'concept': 'organization'}] ['Federated States of Micronesia', 'member of', {'concept': 'international organization'}] ['Mexico', 'member of', {'concept': 'organization'}] ['Mexico', 'member of', {'concept': 'international organization'}]
[]
SYSTEM
10
Q190008 Q496967 Q191384 Q294278 Q1065 Q134102 Q656801 Q7825 Q1043527 Q827525
(Q786,P463,c(Q43229)) (Q786,P463,c(Q484652)) (Q214691,P463,c(Q43229)) (Q214691,P463,c(Q484652)) (Q188480,P463,c(Q43229)) (Q188480,P463,c(Q484652)) (Q717,P463,c(Q43229)) (Q717,P463,c(Q484652)) (Q241,P463,c(Q43229)) (Q241,P463,c(Q484652)) (Q188598,P463,c(Q43229)) (Q188598,P463,c(Q484652)) (Q683,P463,c(Q43229)) (Q683,P463,c(Q484652)) (Q786,P463,c(Q43229)) (Q786,P463,c(Q484652)) (Q159,P463,c(Q43229)) (Q159,P463,c(Q484652)) (Q702,P463,c(Q43229)) (Q702,P463,c(Q484652)) (Q96,P463,c(Q43229)) (Q96,P463,c(Q484652))
[ANSWER]
['Q786', 'P463', {'concept': 'Q43229'}] ['Q786', 'P463', {'concept': 'Q484652'}] ['Q214691', 'P463', {'concept': 'Q43229'}] ['Q214691', 'P463', {'concept': 'Q484652'}] ['Q188480', 'P463', {'concept': 'Q43229'}] ['Q188480', 'P463', {'concept': 'Q484652'}] ['Q717', 'P463', {'concept': 'Q43229'}] ['Q717', 'P463', {'concept': 'Q484652'}] ['Q241', 'P463', {'concept': 'Q43229'}] ['Q241', 'P463', {'concept': 'Q484652'}] ['Q188598', 'P463', {'concept': 'Q43229'}] ['Q188598', 'P463', {'concept': 'Q484652'}] ['Q683', 'P463', {'concept': 'Q43229'}] ['Q683', 'P463', {'concept': 'Q484652'}] ['Q786', 'P463', {'concept': 'Q43229'}] ['Q786', 'P463', {'concept': 'Q484652'}] ['Q159', 'P463', {'concept': 'Q43229'}] ['Q159', 'P463', {'concept': 'Q484652'}] ['Q702', 'P463', {'concept': 'Q43229'}] ['Q702', 'P463', {'concept': 'Q484652'}] ['Q96', 'P463', {'concept': 'Q43229'}] ['Q96', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q786 property:P463 ?z } UNION { resource:Q786 property:P463 ?y } UNION { resource:Q214691 property:P463 ?z } UNION { resource:Q214691 property:P463 ?y } UNION { resource:Q188480 property:P463 ?z } UNION { resource:Q188480 property:P463 ?y } UNION { resource:Q1180667 property:P463 ?z } UNION { resource:Q1180667 property:P463 ?y } UNION { resource:Q241 property:P463 ?z } UNION { resource:Q241 property:P463 ?y } UNION { resource:Q188598 property:P463 ?z } UNION { resource:Q188598 property:P463 ?y } UNION { resource:Q2213899 property:P463 ?z } UNION { resource:Q2213899 property:P463 ?y } UNION { resource:Q786 property:P463 ?z } UNION { resource:Q786 property:P463 ?y } UNION { resource:Q24058892 property:P463 ?z } UNION { resource:Q24058892 property:P463 ?y } UNION { resource:Q702 property:P463 ?z } UNION { resource:Q702 property:P463 ?y } UNION { resource:Q2294975 property:P463 ?z } UNION { resource:Q2294975 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q484652 }
Central American Bank for Economic Integration Alliance of Small Island States International Bank for Reconstruction and Development African, Caribbean and Pacific Group of States United Nations Organisation internationale de la Francophonie International Finance Corporation World Trade Organization Multilateral Investment Guarantee Agency International Development Association
10
['Dominican Republic', 'member of', {'concept': 'organization'}] ['Dominican Republic', 'member of', {'concept': 'international organization'}] ['Magliano in Toscana', 'member of', {'concept': 'organization'}] ['Magliano in Toscana', 'member of', {'concept': 'international organization'}] ['Campagnatico', 'member of', {'concept': 'organization'}] ['Campagnatico', 'member of', {'concept': 'international organization'}] ['Venezuela', 'member of', {'concept': 'organization'}] ['Venezuela', 'member of', {'concept': 'international organization'}] ['Cuba', 'member of', {'concept': 'organization'}] ['Cuba', 'member of', {'concept': 'international organization'}] ['Gavorrano', 'member of', {'concept': 'organization'}] ['Gavorrano', 'member of', {'concept': 'international organization'}] ['Samoa', 'member of', {'concept': 'organization'}] ['Samoa', 'member of', {'concept': 'international organization'}] ['Dominican Republic', 'member of', {'concept': 'organization'}] ['Dominican Republic', 'member of', {'concept': 'international organization'}] ['Russia', 'member of', {'concept': 'organization'}] ['Russia', 'member of', {'concept': 'international organization'}] ['Federated States of Micronesia', 'member of', {'concept': 'organization'}] ['Federated States of Micronesia', 'member of', {'concept': 'international organization'}] ['Mexico', 'member of', {'concept': 'organization'}] ['Mexico', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Dominican_Republic property:member_of ?z } UNION { resource:Dominican_Republic property:member_of ?y } UNION { resource:Magliano_in_Toscana property:member_of ?z } UNION { resource:Magliano_in_Toscana property:member_of ?y } UNION { resource:Campagnatico property:member_of ?z } UNION { resource:Campagnatico property:member_of ?y } UNION { resource:Venezuela property:member_of ?z } UNION { resource:Venezuela property:member_of ?y } UNION { resource:Cuba property:member_of ?z } UNION { resource:Cuba property:member_of ?y } UNION { resource:Gavorrano property:member_of ?z } UNION { resource:Gavorrano property:member_of ?y } UNION { resource:Samoa property:member_of ?z } UNION { resource:Samoa property:member_of ?y } UNION { resource:Dominican_Republic property:member_of ?z } UNION { resource:Dominican_Republic property:member_of ?y } UNION { resource:Russia property:member_of ?z } UNION { resource:Russia property:member_of ?y } UNION { resource:Federated_States_of_Micronesia property:member_of ?z } UNION { resource:Federated_States_of_Micronesia property:member_of ?y } UNION { resource:Mexico property:member_of ?z } UNION { resource:Mexico property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:international_organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q244
P17
Q15617994 Q2221906 Q811979
USER
How many administrative territories are less number of geographic locations and architectural structures present in than Barbados ?
(c(Q2221906)|c(Q811979),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2221906
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q244
relation P17
type Q2221906
type Q811979
[[{'concept': 'Q2221906'}, {'concept': 'Q811979'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?u ) WHERE { VALUES ( ?o ) { ( ontology:Q811979 ) ( ontology:Q2221906 ) } . ?q rdf:type ?o } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:P17 resource:Q244 . { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2221906 ) ( ontology:Q811979 ) } } } } . FILTER ( ?u < ?d ) }
Barbados
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type geographic location
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Barbados
relation country
type geographic location
type architectural structure
[[{'concept': 'geographic location'}, {'concept': 'architectural structure'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?u ) WHERE { VALUES ( ?o ) { ( ontology:architectural_structure ) ( ontology:geographic_location ) } . ?q rdf:type ?o } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:country resource:Barbados . { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:geographic_location ) ( ontology:architectural_structure ) } } } } . FILTER ( ?u < ?d ) }
[]
designation for an administrative territorial entity geographic location architectural structure
SYSTEM
107
Q702 Q1256 Q709 Q805 Q339952 Q270508 Q684030 Q2172530 Q12536 Q784 Q640426 Q36678 Q736029 Q710 Q565812 Q187035 Q1462 Q657 Q517333 Q2001966 Q326029 Q958 Q986 Q153529 Q695316 Q4628 Q826 Q165040 Q315667 Q153136 Q1210 Q155019 Q983 Q29999 Q107426 Q730 Q1282 Q159626 Q238 Q1044 Q1042 Q1041 Q177323 Q313175 Q149621 Q1027 Q1020 Q34762 Q1458 Q3462133 Q815731 Q47261 Q347 Q1050 Q977 Q704288 Q10957559 Q1037 Q965 Q967 Q962 Q697 Q695 Q389004 Q1013 Q160307 Q164092 Q1483510 Q2662372 Q917 Q1007 Q1005 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q696651 Q1014 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q426025
(c(Q2221906)|c(Q811979),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2221906
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q244
relation P17
type Q2221906
type Q811979
[ANSWER]
[[{'concept': 'Q2221906'}, {'concept': 'Q811979'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?u ) WHERE { VALUES ( ?o ) { ( ontology:Q811979 ) ( ontology:Q2221906 ) } . ?q rdf:type ?o } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:P17 resource:Q244 . { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2221906 ) ( ontology:Q811979 ) } } } } . FILTER ( ?u < ?d ) }
Federated States of Micronesia Liguria Marshall Islands Yemen Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Dominica Stahnsdorf West Bank Nassau-Siegen Kiribati Principality of Calenberg Principality of Albania Sardinia Chad Principality of Polotsk Company rule in India Duchy of Brunswick South Sudan Eritrea Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Saxe-Weimar Habsburg Empire Lombardy Duchy of Lorraine Equatorial Guinea Kingdom of the Netherlands Anjou Suriname Lazio Württemberg San Marino Sierra Leone Seychelles Senegal developing country Saxe-Lauenburg district Mauritius Malawi Principality of Bayreuth Calabria Saxe-Coburg and Gotha Principality of Bulgaria Duchy of Bavaria Liechtenstein Swaziland Djibouti Duchy of Holstein Moldavia Rwanda Burkina Faso Burundi Benin Nauru Palau Wallachia Lesotho Fatimid caliphate Duchy of Saxony Principality of Wales Principality of Minsk Bhutan Guinea-Bissau Gambia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Saxe-Eisenach Liberia Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Duchy of Savoy
107
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type geographic location
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Barbados
relation country
type geographic location
type architectural structure
[[{'concept': 'geographic location'}, {'concept': 'architectural structure'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?u ) WHERE { VALUES ( ?o ) { ( ontology:architectural_structure ) ( ontology:geographic_location ) } . ?q rdf:type ?o } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:country resource:Barbados . { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:geographic_location ) ( ontology:architectural_structure ) } } } } . FILTER ( ?u < ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q114
P17
Q15617994 Q2221906 Q811979
USER
And how about Kenya?
(c(Q2221906)|c(Q811979),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2221906
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q114
relation P17
type Q2221906
type Q811979
[[{'concept': 'Q2221906'}, {'concept': 'Q811979'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:P17 resource:Q114 . { ?i rdf:type ?e . VALUES ( ?e ) { ( ontology:Q2221906 ) ( ontology:Q811979 ) } } } } . FILTER ( ?s < ?f ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) ?h WHERE { { ?o property:P17 ?h . ?h rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q811979 } UNION { ?o property:P17 ?h . ?h rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q2221906 } } GROUP BY ?h } }
Kenya
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type geographic location
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Kenya
relation country
type geographic location
type architectural structure
[[{'concept': 'geographic location'}, {'concept': 'architectural structure'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:country resource:Kenya . { ?i rdf:type ?e . VALUES ( ?e ) { ( ontology:geographic_location ) ( ontology:architectural_structure ) } } } } . FILTER ( ?s < ?f ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) ?h WHERE { { ?o property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:architectural_structure } UNION { ?o property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:geographic_location } } GROUP BY ?h } }
[]
designation for an administrative territorial entity geographic location architectural structure
SYSTEM
127
Q702 Q800 Q1256 Q709 Q805 Q339952 Q270508 Q684030 Q2172530 Q12536 Q784 Q640426 Q36678 Q736029 Q710 Q565812 Q187035 Q1462 Q657 Q517333 Q2001966 Q326029 Q958 Q986 Q153529 Q695316 Q4628 Q826 Q165040 Q241 Q244 Q315667 Q811 Q153136 Q1210 Q921 Q155019 Q983 Q29999 Q107426 Q424 Q730 Q1282 Q159626 Q238 Q1045 Q1044 Q1042 Q1041 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q842 Q34762 Q1458 Q3462133 Q815731 Q47261 Q229 Q347 Q1050 Q977 Q704288 Q10957559 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q389004 Q754 Q1013 Q160307 Q164092 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q696651 Q948 Q817 Q813 Q1014 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q426025 Q953
(c(Q2221906)|c(Q811979),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2221906
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q114
relation P17
type Q2221906
type Q811979
[ANSWER]
[[{'concept': 'Q2221906'}, {'concept': 'Q811979'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:P17 resource:Q114 . { ?i rdf:type ?e . VALUES ( ?e ) { ( ontology:Q2221906 ) ( ontology:Q811979 ) } } } } . FILTER ( ?s < ?f ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) ?h WHERE { { ?o property:P17 ?h . ?h rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q811979 } UNION { ?o property:P17 ?h . ?h rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q2221906 } } GROUP BY ?h } }
Federated States of Micronesia Costa Rica Liguria Marshall Islands Yemen Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Dominica Stahnsdorf West Bank Nassau-Siegen Kiribati Principality of Calenberg Principality of Albania Sardinia Chad Principality of Polotsk Company rule in India Duchy of Brunswick South Sudan Eritrea Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Cuba Barbados Saxe-Weimar Nicaragua Habsburg Empire Lombardy Brunei Duchy of Lorraine Equatorial Guinea Kingdom of the Netherlands Anjou Cambodia Suriname Lazio Württemberg San Marino Somalia Sierra Leone Seychelles Senegal developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Oman Principality of Bayreuth Calabria Saxe-Coburg and Gotha Principality of Bulgaria Duchy of Bavaria Cyprus Liechtenstein Swaziland Djibouti Duchy of Holstein Moldavia Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Wallachia Trinidad and Tobago Lesotho Fatimid caliphate Duchy of Saxony Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Saxe-Eisenach Tunisia Kuwait Kyrgyzstan Liberia Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Duchy of Savoy Zambia
127
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type geographic location
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Kenya
relation country
type geographic location
type architectural structure
[[{'concept': 'geographic location'}, {'concept': 'architectural structure'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:country resource:Kenya . { ?i rdf:type ?e . VALUES ( ?e ) { ( ontology:geographic_location ) ( ontology:architectural_structure ) } } } } . FILTER ( ?s < ?f ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) ?h WHERE { { ?o property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:architectural_structure } UNION { ?o property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:geographic_location } } GROUP BY ?h } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2709092 Q188480
P495 P17
Q15617994
USER
Which administrative territories do Campagnatico belong to and did The Source originate ?
AND((Q188480,P17,c(Q15617994)), (Q2709092,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q188480
relation P17
action find
entity Q2709092
relation P495
type Q15617994
{'AND': [['Q188480', 'P17', {'concept': 'Q15617994'}], ['Q2709092', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q188480 property:P17 ?g . resource:Q2709092 property:P495 ?g }
The Source Campagnatico
action filter_type
action intersection
action find
entity Campagnatico
relation country
action find
entity The Source
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Campagnatico', 'country', {'concept': 'designation for an administrative territorial entity'}], ['The Source', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Campagnatico property:country ?g . resource:The_Source property:country_of_origin ?g }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q188480,P17,c(Q15617994)), (Q2709092,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q188480
relation P17
action find
entity Q2709092
relation P495
type Q15617994
Campagnatico belong to [ANSWER]
{'AND': [['Q188480', 'P17', {'concept': 'Q15617994'}], ['Q2709092', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q188480 property:P17 ?g . resource:Q2709092 property:P495 ?g }
Italy
Campagnatico belong to Italy
Italy
action filter_type
action intersection
action find
entity Campagnatico
relation country
action find
entity The Source
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Campagnatico', 'country', {'concept': 'designation for an administrative territorial entity'}], ['The Source', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Campagnatico property:country ?g . resource:The_Source property:country_of_origin ?g }
[]