Simple Question (Direct)
Simple Question
Q18620307
P19
Q56061
USER
Where was David Kinsombi born ?
(Q18620307,P19,c(Q56061))
action filter_type
action find
entity Q18620307
relation P19
type Q56061
['Q18620307', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q18620307 property:P19 ?t }
David Kinsombi
action filter_type
action find
entity David Kinsombi
relation place of birth
type administrative territorial entity
['David Kinsombi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:David_Kinsombi property:place_of_birth ?t }
[]
administrative territorial entity
Q628118
SYSTEM
Rüdesheim am Rhein
Q628118
(Q18620307,P19,c(Q56061))
action filter_type
action find
entity Q18620307
relation P19
type Q56061
David Kinsombi was born in [ANSWER]
['Q18620307', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q18620307 property:P19 ?t }
Rüdesheim am Rhein
David Kinsombi was born in Rüdesheim am Rhein
Rüdesheim am Rhein
action filter_type
action find
entity David Kinsombi
relation place of birth
type administrative territorial entity
['David Kinsombi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:David_Kinsombi property:place_of_birth ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q628118
P17
Q1048835
USER
Which political territory is that administrative territory situated in ?
(Q628118,P17,c(Q1048835))
action filter_type
action find
entity Q628118
relation P17
type Q1048835
['Q628118', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q628118 property:P17 ?j . ?j rdf:type ontology:Q1048835 }
Rüdesheim am Rhein
action filter_type
action find
entity Rüdesheim am Rhein
relation country
type political territorial entity
['Rüdesheim am Rhein', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Rüdesheim_am_Rhein property:country ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q628118,P17,c(Q1048835))
action filter_type
action find
entity Q628118
relation P17
type Q1048835
That administrative territory is situated in [ANSWER]
['Q628118', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q628118 property:P17 ?j . ?j rdf:type ontology:Q1048835 }
Germany
That administrative territory is situated in Germany
Germany
action filter_type
action find
entity Rüdesheim am Rhein
relation country
type political territorial entity
['Rüdesheim am Rhein', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Rüdesheim_am_Rhein property:country ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q628118
P190
Q515
USER
Which city is twin town of that administrative territory ?
(Q183,P190,c(Q515))
action filter_type
action find
entity Q628118
relation P190
type Q515
['Q183', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q515 . resource:Q628118 property:P190 ?x }
Rüdesheim am Rhein
action filter_type
action find
entity Rüdesheim am Rhein
relation sister city
type city
['Germany', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:city . resource:Rüdesheim_am_Rhein property:sister_city ?x }
[]
city
Q933638
SYSTEM
Mezőkövesd
Q933638
(Q183,P190,c(Q515))
action filter_type
action find
entity Q628118
relation P190
type Q515
[ANSWER] is twin town of that administrative territory
['Q183', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q515 . resource:Q628118 property:P190 ?x }
Mezőkövesd
Mezőkövesd is twin town of that administrative territory
Mezőkövesd
action filter_type
action find
entity Rüdesheim am Rhein
relation sister city
type city
['Germany', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:city . resource:Rüdesheim_am_Rhein property:sister_city ?x }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13749 Q18620307
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of David Kinsombi or share border with Ger ?
OR((Q18620307,P27,c(Q1048835)), (Q13749,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q18620307
relation P27
action find
entity Q13749
relation P47
type Q1048835
{'OR': [['Q18620307', 'P27', {'concept': 'Q1048835'}], ['Q13749', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q13749 property:P47 ?f } UNION { resource:Q18620307 property:P27 ?f } } . ?f rdf:type ontology:Q1048835 }
Ger David Kinsombi
action filter_type
action union
action find
entity David Kinsombi
relation country of citizenship
action find
entity Ger
relation shares border with
type political territorial entity
{'OR': [['David Kinsombi', 'country of citizenship', {'concept': 'political territorial entity'}], ['Ger', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Ger property:shares_border_with ?f } UNION { resource:David_Kinsombi property:country_of_citizenship ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q13732 Q13735 Q13734 Q13733 Q13747 Q13748 Q13754
SYSTEM
Germany, Bellver de Cerdanya, Fontanals de Cerdanya, Das, Catalonia, Bolvir, Isòvol, Guils de Cerdanya, Meranges
Q183 Q13732 Q13735 Q13734 Q13733 Q13747 Q13748 Q13754
OR((Q18620307,P27,c(Q1048835)), (Q13749,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q18620307
relation P27
action find
entity Q13749
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of David Kinsombi or share border with Ger
{'OR': [['Q18620307', 'P27', {'concept': 'Q1048835'}], ['Q13749', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q13749 property:P47 ?f } UNION { resource:Q18620307 property:P27 ?f } } . ?f rdf:type ontology:Q1048835 }
Germany Bellver de Cerdanya Fontanals de Cerdanya Das, Catalonia Bolvir Isòvol Guils de Cerdanya Meranges
Germany, Bellver de Cerdanya, Fontanals de Cerdanya, Das, Catalonia, Bolvir, Isòvol, Guils de Cerdanya and Meranges are the countries of citizenship of David Kinsombi or share border with Ger
Germany Bellver de Cerdanya Fontanals de Cerdanya Das, Catalonia Bolvir Isòvol Guils de Cerdanya Meranges
action filter_type
action union
action find
entity David Kinsombi
relation country of citizenship
action find
entity Ger
relation shares border with
type political territorial entity
{'OR': [['David Kinsombi', 'country of citizenship', {'concept': 'political territorial entity'}], ['Ger', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Ger property:shares_border_with ?f } UNION { resource:David_Kinsombi property:country_of_citizenship ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q77
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic associations with approximately the same number of political territories as Uruguay ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q77
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?o ) WHERE { ?l property:P530 ?f . ?f rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ontology:Q15617994 . resource:Q77 property:P530 ?t } } . FILTER ( ?o = ?e ) }
Uruguay
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Uruguay
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?o ) WHERE { ?l property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Uruguay property:diplomatic_relation ?t } } . FILTER ( ?o = ?e ) }
[]
political territorial entity designation for an administrative territorial entity
Q30 Q159 Q55
SYSTEM
United States of America, Russia, Netherlands
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q851 Q733 Q734 Q736 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q77
relation P530
type Q15617994
[ANSWERS] have diplomatic associations with approximately the same number of political territories as Uruguay
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?o ) WHERE { ?l property:P530 ?f . ?f rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ontology:Q15617994 . resource:Q77 property:P530 ?t } } . FILTER ( ?o = ?e ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
United States of America, Russia and Netherlands have diplomatic associations with approximately the same number of political territories as Uruguay
United States of America Russia Netherlands
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Uruguay
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?o ) WHERE { ?l property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Uruguay property:diplomatic_relation ?t } } . FILTER ( ?o = ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q804
P530
Q1048835 Q15617994
USER
And also tell me about Panama?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q804
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { resource:Q804 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?v = ?c ) . { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?v ) WHERE { ?m property:P530 ?e . ?m rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?m } }
Panama
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Panama
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { resource:Panama property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v = ?c ) . { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?v ) WHERE { ?m property:diplomatic_relation ?e . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?m } }
[]
political territorial entity designation for an administrative territorial entity
Q30 Q159 Q55
SYSTEM
United States of America, Russia, Netherlands
Q702 Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q804
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { resource:Q804 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?v = ?c ) . { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?v ) WHERE { ?m property:P530 ?e . ?m rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?m } }
Federated States of Micronesia Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
United States of America Russia Netherlands
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Panama
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { resource:Panama property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v = ?c ) . { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?v ) WHERE { ?m property:diplomatic_relation ?e . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?m } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q796
P138
Q15617994 Q82799 Q56061
USER
How many administrative territories are greater number of names and administrative territories named after than Iraq ?
(c(Q82799)|c(Q56061),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q82799
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q796
relation P138
type Q82799
type Q56061
[[{'concept': 'Q82799'}, {'concept': 'Q56061'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:Q82799 ) ( ontology:Q56061 ) } } GROUP BY ?t } . FILTER ( ?k > ?u ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:P138 resource:Q796 . { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:Q82799 ) ( ontology:Q56061 ) } } } } }
Iraq
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type name
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Iraq
relation named after
type name
type administrative territorial entity
[[{'concept': 'name'}, {'concept': 'administrative territorial entity'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:name ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?t } . FILTER ( ?k > ?u ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:named_after resource:Iraq . { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:name ) ( ontology:administrative_territorial_entity ) } } } } }
[]
designation for an administrative territorial entity name administrative territorial entity
SYSTEM
7
Q55 Q1273 Q45 Q39 Q223 Q654138 Q770
(c(Q82799)|c(Q56061),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q82799
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q796
relation P138
type Q82799
type Q56061
[ANSWER]
[[{'concept': 'Q82799'}, {'concept': 'Q56061'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:Q82799 ) ( ontology:Q56061 ) } } GROUP BY ?t } . FILTER ( ?k > ?u ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:P138 resource:Q796 . { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:Q82799 ) ( ontology:Q56061 ) } } } } }
Netherlands Tuscany Portugal Switzerland Greenland Rhede, Lower Saxony Friesland
7
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type name
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Iraq
relation named after
type name
type administrative territorial entity
[[{'concept': 'name'}, {'concept': 'administrative territorial entity'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:name ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?t } . FILTER ( ?k > ?u ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:named_after resource:Iraq . { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:name ) ( ontology:administrative_territorial_entity ) } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q159 Q11772
P30
Q2221906
USER
How many geographic locations are Russia and Ancient Greece situated ?
(Q159,P30,c(Q2221906)) (Q11772,P30,c(Q2221906))
action count
action intersection
action filter_type
action find
entity Q159
relation P30
type Q2221906
action filter_type
action find
entity Q11772
relation P30
type Q2221906
['Q159', 'P30', {'concept': 'Q2221906'}] ['Q11772', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:Q159 property:P30 ?o . ?o rdf:type ontology:Q2221906 . resource:Q11772 property:P30 ?o . ?o rdf:type ontology:Q2221906 }
Russia Ancient Greece
action count
action intersection
action filter_type
action find
entity Russia
relation continent
type geographic location
action filter_type
action find
entity Ancient Greece
relation continent
type geographic location
['Russia', 'continent', {'concept': 'geographic location'}] ['Ancient Greece', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:Russia property:continent ?o . ?o rdf:type ontology:geographic_location . resource:Ancient_Greece property:continent ?o . ?o rdf:type ontology:geographic_location }
[]
geographic location
SYSTEM
2
Q46 Q48
(Q159,P30,c(Q2221906)) (Q11772,P30,c(Q2221906))
action count
action intersection
action filter_type
action find
entity Q159
relation P30
type Q2221906
action filter_type
action find
entity Q11772
relation P30
type Q2221906
[ANSWER]
['Q159', 'P30', {'concept': 'Q2221906'}] ['Q11772', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:Q159 property:P30 ?o . ?o rdf:type ontology:Q2221906 . resource:Q11772 property:P30 ?o . ?o rdf:type ontology:Q2221906 }
Europe Asia
2
action count
action intersection
action filter_type
action find
entity Russia
relation continent
type geographic location
action filter_type
action find
entity Ancient Greece
relation continent
type geographic location
['Russia', 'continent', {'concept': 'geographic location'}] ['Ancient Greece', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:Russia property:continent ?o . ?o rdf:type ontology:geographic_location . resource:Ancient_Greece property:continent ?o . ?o rdf:type ontology:geographic_location }
[]