Simple Question (Direct)
Simple Question
Q1729834
P102
Q7278
USER
Which political party is Karl-Heinz Daehre a member of ?
(Q1729834,P102,c(Q7278))
action filter_type
action find
entity Q1729834
relation P102
type Q7278
['Q1729834', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7278 . resource:Q1729834 property:P102 ?g }
Karl-Heinz Daehre
action filter_type
action find
entity Karl-Heinz Daehre
relation member of political party
type political party
['Karl-Heinz Daehre', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_party . resource:Karl-Heinz_Daehre property:member_of_political_party ?g }
[]
political party
Q49762
SYSTEM
Christian Democratic Union
Q49762
(Q1729834,P102,c(Q7278))
action filter_type
action find
entity Q1729834
relation P102
type Q7278
Union [ANSWER] is Karl-Heinz Daehre a member of
['Q1729834', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7278 . resource:Q1729834 property:P102 ?g }
Christian Democratic Union
Union Christian Democratic Union is Karl-Heinz Daehre a member of
Christian Democratic Union
action filter_type
action find
entity Karl-Heinz Daehre
relation member of political party
type political party
['Karl-Heinz Daehre', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_party . resource:Karl-Heinz_Daehre property:member_of_political_party ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1729834
P710
Q1499496
USER
Which German presidential election was that person a participant of ?
(c(Q1499496),P710,Q49762)
action filter_type
action find_reverse
entity Q1729834
relation P710
type Q1499496
[{'concept': 'Q1499496'}, 'P710', 'Q49762']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1499496 . ?e property:P710 resource:Q1729834 }
Karl-Heinz Daehre
action filter_type
action find_reverse
entity Karl-Heinz Daehre
relation participant
type German presidential election
[{'concept': 'German presidential election'}, 'participant', 'Christian Democratic Union']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:German_presidential_election . ?e property:participant resource:Karl-Heinz_Daehre }
[]
German presidential election
Q314532
SYSTEM
German presidential election, 2004
Q314532
(c(Q1499496),P710,Q49762)
action filter_type
action find_reverse
entity Q1729834
relation P710
type Q1499496
[ANSWER] was that person a participant of
[{'concept': 'Q1499496'}, 'P710', 'Q49762']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1499496 . ?e property:P710 resource:Q1729834 }
German presidential election, 2004
German presidential election, 2004 was that person a participant of
German presidential election, 2004
action filter_type
action find_reverse
entity Karl-Heinz Daehre
relation participant
type German presidential election
[{'concept': 'German presidential election'}, 'participant', 'Christian Democratic Union']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:German_presidential_election . ?e property:participant resource:Karl-Heinz_Daehre }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13899 Q1729834
P47 P27
Q1048835
USER
Which political territories are Karl-Heinz Daehre an inhabitant of or are adjacent to Zamboanga del Norte ?
OR((Q1729834,P27,c(Q1048835)), (Q13899,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1729834
relation P27
action find
entity Q13899
relation P47
type Q1048835
{'OR': [['Q1729834', 'P27', {'concept': 'Q1048835'}], ['Q13899', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1729834 property:P27 ?l } UNION { resource:Q13899 property:P47 ?l } } . ?l rdf:type ontology:Q1048835 }
Zamboanga del Norte Karl-Heinz Daehre
action filter_type
action union
action find
entity Karl-Heinz Daehre
relation country of citizenship
action find
entity Zamboanga del Norte
relation shares border with
type political territorial entity
{'OR': [['Karl-Heinz Daehre', 'country of citizenship', {'concept': 'political territorial entity'}], ['Zamboanga del Norte', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Karl-Heinz_Daehre property:country_of_citizenship ?l } UNION { resource:Zamboanga_del_Norte property:shares_border_with ?l } } . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13900 Q13857 Q13902 Q13863 Q183
SYSTEM
Zamboanga del Sur, Misamis Occidental, Zamboanga Sibugay, Negros Oriental, Germany
Q13900 Q13857 Q13902 Q13863 Q183
OR((Q1729834,P27,c(Q1048835)), (Q13899,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1729834
relation P27
action find
entity Q13899
relation P47
type Q1048835
[ANSWERS] are Karl-Heinz Daehre an inhabitant of or are adjacent to Zamboanga del Norte
{'OR': [['Q1729834', 'P27', {'concept': 'Q1048835'}], ['Q13899', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1729834 property:P27 ?l } UNION { resource:Q13899 property:P47 ?l } } . ?l rdf:type ontology:Q1048835 }
Zamboanga del Sur Misamis Occidental Zamboanga Sibugay Negros Oriental Germany
Zamboanga del Sur, Misamis Occidental, Zamboanga Sibugay, Negros Oriental and Germany are Karl-Heinz Daehre an inhabitant of or are adjacent to Zamboanga del Norte
Zamboanga del Sur Misamis Occidental Zamboanga Sibugay Negros Oriental Germany
action filter_type
action union
action find
entity Karl-Heinz Daehre
relation country of citizenship
action find
entity Zamboanga del Norte
relation shares border with
type political territorial entity
{'OR': [['Karl-Heinz Daehre', 'country of citizenship', {'concept': 'political territorial entity'}], ['Zamboanga del Norte', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Karl-Heinz_Daehre property:country_of_citizenship ?l } UNION { resource:Zamboanga_del_Norte property:shares_border_with ?l } } . ?l rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q805
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with greater number of political territories than Yemen ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q805
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?o ) WHERE { ?v property:P530 ?r . ?r rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q805 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } . FILTER ( ?o > ?t ) }
Yemen
action count
action greater
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 Yemen
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?o ) WHERE { ?v property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Yemen property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } . FILTER ( ?o > ?t ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
154
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 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 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 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q805
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?o ) WHERE { ?v property:P530 ?r . ?r rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q805 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } . FILTER ( ?o > ?t ) }
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 Brazil 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 Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador 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 Zambia
154
action count
action greater
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 Yemen
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?o ) WHERE { ?v property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Yemen property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } . FILTER ( ?o > ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q252
P530
Q15617994 Q1048835
USER
And what about Indonesia?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q252
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?h ) WHERE { ?x property:P530 ?n . ?x rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?h > ?m ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { resource:Q252 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } }
Indonesia
action count
action greater
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 Indonesia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?h ) WHERE { ?x property:diplomatic_relation ?n . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?h > ?m ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { resource:Indonesia property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q155 Q38
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q252
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?h ) WHERE { ?x property:P530 ?n . ?x rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?h > ?m ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { resource:Q252 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } }
Brazil Italy
2
action count
action greater
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 Indonesia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?h ) WHERE { ?x property:diplomatic_relation ?n . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?h > ?m ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { resource:Indonesia property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q796
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with around the same number of political territories as Iraq ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q796
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?f ) WHERE { ?u property:P530 ?a . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q796 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?f = ?i ) }
Iraq
action count
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 Iraq
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?f ) WHERE { ?u property:diplomatic_relation ?a . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Iraq property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f = ?i ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
48
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q796
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?f ) WHERE { ?u property:P530 ?a . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q796 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?f = ?i ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
48
action count
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 Iraq
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?f ) WHERE { ?u property:diplomatic_relation ?a . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Iraq property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f = ?i ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13863
P36
Q515
USER
Which city is called the capital of Negros Oriental ?
(Q13863,P36,c(Q515))
action filter_type
action find
entity Q13863
relation P36
type Q515
['Q13863', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q515 . resource:Q13863 property:P36 ?u }
Negros Oriental
action filter_type
action find
entity Negros Oriental
relation capital
type city
['Negros Oriental', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:city . resource:Negros_Oriental property:capital ?u }
[]
city
Q873377
SYSTEM
Dumaguete
Q873377
(Q13863,P36,c(Q515))
action filter_type
action find
entity Q13863
relation P36
type Q515
[ANSWER] is called the capital of Negros Oriental
['Q13863', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q515 . resource:Q13863 property:P36 ?u }
Dumaguete
Dumaguete is called the capital of Negros Oriental
Dumaguete
action filter_type
action find
entity Negros Oriental
relation capital
type city
['Negros Oriental', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:city . resource:Negros_Oriental property:capital ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13900
P6
Q502895
USER
Who is the head of the government of Zamboanga del Sur ?
(Q13900,P6,c(Q502895))
action filter_type
action find
entity Q13900
relation P6
type Q502895
['Q13900', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q13900 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Zamboanga del Sur
action filter_type
action find
entity Zamboanga del Sur
relation head of government
type common name
['Zamboanga del Sur', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Zamboanga_del_Sur property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]
common name
Q4776523
SYSTEM
Antonio Cerilles
Q4776523
(Q13900,P6,c(Q502895))
action filter_type
action find
entity Q13900
relation P6
type Q502895
The head of the government of Zamboanga del Sur is José [ANSWER]
['Q13900', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q13900 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Antonio Cerilles
The head of the government of Zamboanga del Sur is José Antonio Cerilles
Antonio Cerilles
action filter_type
action find
entity Zamboanga del Sur
relation head of government
type common name
['Zamboanga del Sur', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Zamboanga_del_Sur property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13900
P1376
Q515
USER
What is the capital of that political territory ?
(c(Q515),P1376,Q4776523)
action filter_type
action find_reverse
entity Q13900
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', 'Q4776523']
SELECT DISTINCT ?t WHERE { ?t property:P1376 resource:Q13900 . ?t rdf:type ontology:Q515 }
Zamboanga del Sur
action filter_type
action find_reverse
entity Zamboanga del Sur
relation capital of
type city
[{'concept': 'city'}, 'capital of', 'Antonio Cerilles']
SELECT DISTINCT ?t WHERE { ?t property:capital_of resource:Zamboanga_del_Sur . ?t rdf:type ontology:city }
[]
city
Q874270
SYSTEM
Pagadian
Q874270
(c(Q515),P1376,Q4776523)
action filter_type
action find_reverse
entity Q13900
relation P1376
type Q515
The capital of that political territory is the [ANSWER]
[{'concept': 'Q515'}, 'P1376', 'Q4776523']
SELECT DISTINCT ?t WHERE { ?t property:P1376 resource:Q13900 . ?t rdf:type ontology:Q515 }
Pagadian
The capital of that political territory is the Pagadian
Pagadian
action filter_type
action find_reverse
entity Zamboanga del Sur
relation capital of
type city
[{'concept': 'city'}, 'capital of', 'Antonio Cerilles']
SELECT DISTINCT ?t WHERE { ?t property:capital_of resource:Zamboanga_del_Sur . ?t rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q4776523
P6
Q1048835
USER
How many political territories have a government lead by Antonio Cerilles ?
(c(Q1048835),P6,Q4776523)
action count
action filter_type
action find_reverse
entity Q4776523
relation P6
type Q1048835
[{'concept': 'Q1048835'}, 'P6', 'Q4776523']
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p rdf:type ontology:Q1048835 . ?p property:P6 resource:Q4776523 }
Antonio Cerilles
action count
action filter_type
action find_reverse
entity Antonio Cerilles
relation head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of government', 'Antonio Cerilles']
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p rdf:type ontology:political_territorial_entity . ?p property:head_of_government resource:Antonio_Cerilles }
[]
political territorial entity
SYSTEM
1
Q13900
(c(Q1048835),P6,Q4776523)
action count
action filter_type
action find_reverse
entity Q4776523
relation P6
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P6', 'Q4776523']
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p rdf:type ontology:Q1048835 . ?p property:P6 resource:Q4776523 }
Zamboanga del Sur
1
action count
action filter_type
action find_reverse
entity Antonio Cerilles
relation head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of government', 'Antonio Cerilles']
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p rdf:type ontology:political_territorial_entity . ?p property:head_of_government resource:Antonio_Cerilles }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14033637
P21
Q290
USER
What is the sex of Jose Maria Carrasco Ledo ?
(Q14033637,P21,c(Q290))
action filter_type
action find
entity Q14033637
relation P21
type Q290
['Q14033637', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q14033637 property:P21 ?c . ?c rdf:type ontology:Q290 }
Jose Maria Carrasco Ledo
action filter_type
action find
entity Jose Maria Carrasco Ledo
relation gender
type sex
['Jose Maria Carrasco Ledo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Jose_Maria_Carrasco_Ledo property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q14033637,P21,c(Q290))
action filter_type
action find
entity Q14033637
relation P21
type Q290
The sex of Jose Maria Carrasco Ledo is the [ANSWER]
['Q14033637', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q14033637 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
The sex of Jose Maria Carrasco Ledo is the male
male
action filter_type
action find
entity Jose Maria Carrasco Ledo
relation gender
type sex
['Jose Maria Carrasco Ledo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Jose_Maria_Carrasco_Ledo property:gender ?c . ?c rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4722660
Q290
USER
And what about Alfred Feist?
(Q4722660,P21,c(Q290))
action filter_type
action find
entity Q4722660
relation P21
type Q290
['Q4722660', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q290 . resource:Q4722660 property:P21 ?c }
Alfred Feist
action filter_type
action find
entity Alfred Feist
relation gender
type sex
['Alfred Feist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sex . resource:Alfred_Feist property:gender ?c }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4722660,P21,c(Q290))
action filter_type
action find
entity Q4722660
relation P21
type Q290
[ANSWER]
['Q4722660', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q290 . resource:Q4722660 property:P21 ?c }
male
male
action filter_type
action find
entity Alfred Feist
relation gender
type sex
['Alfred Feist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sex . resource:Alfred_Feist property:gender ?c }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q37024
P1376
Q7275 Q515
USER
How many states have approximately the same number of cities have their first city as Serbia and Montenegro ?
(c(Q515),P1376,c(Q7275))
action count
action approx
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_type
action find
entity Q37024
relation P1376
type Q7275
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?p ) WHERE { ?i rdf:type ontology:Q7275 . ?q rdf:type ontology:Q515 . ?q property:P1376 ?i } GROUP BY ?i } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { resource:Q37024 property:P1376 ?j . ?j rdf:type ontology:Q7275 } } }
Serbia and Montenegro
action count
action approx
action find_reverse_tuple_counts
relation capital of
type state
type city
action count
action filter_type
action find
entity Serbia and Montenegro
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?p ) WHERE { ?i rdf:type ontology:state . ?q rdf:type ontology:city . ?q property:capital_of ?i } GROUP BY ?i } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { resource:Serbia_and_Montenegro property:capital_of ?j . ?j rdf:type ontology:state } } }
[]
state city
SYSTEM
419
Q230791 Q1193822 Q46652 Q7559152 Q568523 Q788071 Q207162 Q572222 Q1275158 Q3456417 Q152855 Q174193 Q466581 Q110888 Q1471995 Q1295806 Q975405 Q1688151 Q457167 Q1483643 Q827040 Q797527 Q190513 Q889374 Q2308237 Q486181 Q775550 Q31454 Q834486 Q2006542 Q186096 Q501684 Q164079 Q1649871 Q588672 Q2564694 Q62623 Q171150 Q282475 Q1789596 Q184536 Q523380 Q980 Q746443 Q252580 Q3446210 Q317078 Q332005 Q874954 Q172579 Q867782 Q798431 Q1269910 Q188553 Q536476 Q877875 Q1068408 Q1150344 Q330362 Q8146595 Q267584 Q310293 Q1362278 Q1269234 Q2361927 Q1067513 Q402145 Q255931 Q2342822 Q863279 Q1468426 Q71092 Q3177715 Q15180 Q800236 Q83821 Q27260 Q249578 Q16410 Q953432 Q215643 Q212278 Q223936 Q8735 Q13107370 Q8733 Q156038 Q7405 Q761370 Q208404 Q467627 Q1796239 Q321371 Q1152445 Q2670639 Q2412900 Q190025 Q229411 Q153660 Q1771831 Q1069905 Q105313 Q44642 Q38872 Q107299 Q546282 Q11876909 Q541455 Q216173 Q646374 Q241748 Q577867 Q210163 Q842931 Q858841 Q427703 Q2301372 Q216632 Q202687 Q207272 Q889394 Q151148 Q1796198 Q2419932 Q2668600 Q273025 Q149747 Q27306 Q1123960 Q617218 Q1132786 Q167360 Q1186434 Q954585 Q150069 Q1811029 Q551375 Q762943 Q1998866 Q106577 Q146246 Q473433 Q651377 Q161885 Q526507 Q191077 Q468814 Q174306 Q16957 Q1617495 Q1194765 Q157367 Q28322 Q760893 Q1539360 Q2305208 Q1152126 Q652560 Q1639475 Q1636212 Q503623 Q124943 Q1311219 Q172107 Q12548 Q25227 Q870517 Q19901436 Q623751 Q726798 Q736936 Q2444884 Q28428 Q1479952 Q303421 Q449639 Q1143524 Q2086556 Q26988 Q16949002 Q1923401 Q42585 Q170468 Q600018 Q323904 Q1117051 Q1135255 Q1477220 Q624887 Q269864 Q199841 Q335088 Q325461 Q583038 Q199442 Q860407 Q13706 Q146761 Q200262 Q1296908 Q156020 Q431575 Q769782 Q497777 Q878319 Q7251405 Q582861 Q206411 Q179293 Q26472 Q158725 Q139315 Q26273 Q139319 Q832554 Q870055 Q3271735 Q160440 Q797422 Q235030 Q211853 Q213638 Q2340665 Q1538311 Q2657134 Q2414171 Q218023 Q2162698 Q1077630 Q1149230 Q324470 Q551067 Q2264735 Q28511 Q796583 Q1136259 Q28456 Q1183649 Q209065 Q21203 Q10988528 Q631210 Q402580 Q2086608 Q733799 Q178913 Q131964 Q83274 Q62589 Q83572 Q4948 Q836169 Q234009 Q28208 Q903779 Q55502 Q1319681 Q713750 Q2552742 Q220167 Q1115291 Q147909 Q319881 Q1709185 Q894030 Q37024 Q62519 Q668294 Q83286 Q210036 Q3755547 Q1255614 Q76048 Q914898 Q181254 Q2396442 Q28025 Q142417 Q11704201 Q2428714 Q49326 Q1406298 Q14934927 Q1057118 Q2088324 Q11909456 Q580188 Q170174 Q699871 Q175276 Q177076 Q7318 Q844910 Q248452 Q552157 Q170770 Q30623 Q225890 Q5157575 Q3456373 Q217196 Q16624774 Q154195 Q266923 Q173082 Q285658 Q150061 Q170588 Q165154 Q842091 Q70972 Q187684 Q1143164 Q1324889 Q1164500 Q161036 Q2314907 Q2184 Q774783 Q994451 Q105092 Q3185305 Q178038 Q1148907 Q179876 Q206279 Q1469100 Q25279 Q1078602 Q48685 Q2378381 Q320925 Q202775 Q1471373 Q374521 Q491507 Q1044536 Q1333032 Q940741 Q289577 Q2593459 Q150058 Q571453 Q4461035 Q33946 Q762084 Q271570 Q2579852 Q107380 Q206696 Q544630 Q180114 Q431731 Q36704 Q112558 Q1198071 Q889884 Q698239 Q1142179 Q4453003 Q4453007 Q829356 Q1062422 Q764697 Q853477 Q169705 Q212439 Q1751495 Q738264 Q386496 Q696241 Q152420 Q11774 Q4843701 Q422065 Q76236 Q209857 Q2712121 Q964024 Q877155 Q777981 Q487829 Q2365048 Q4274522 Q154853 Q1148042 Q770776 Q230407 Q1549254 Q49683 Q7314513 Q75613 Q1192936 Q2109946 Q71747 Q676184 Q128938 Q837136 Q146597 Q1072362 Q680997 Q93180 Q28573 Q949268 Q1986139 Q151536 Q188586 Q211274 Q61292 Q6412664 Q671899 Q7314469 Q80211 Q12490507 Q862304 Q1029847 Q6415938 Q5148517 Q41304
(c(Q515),P1376,c(Q7275))
action count
action approx
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_type
action find
entity Q37024
relation P1376
type Q7275
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?p ) WHERE { ?i rdf:type ontology:Q7275 . ?q rdf:type ontology:Q515 . ?q property:P1376 ?i } GROUP BY ?i } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { resource:Q37024 property:P1376 ?j . ?j rdf:type ontology:Q7275 } } }
Kingdom of Scotland Wuyue Malacca sultanate Somali Republic Nobatia Talysh-Mughan Autonomous Republic Bourbon Restoration County of Horne Elymais Republic of Saint-Malo Kingdom of Tungning United Kingdom of Great Britain and Ireland Hoysala Empire Kingdom of Essex Former Qin Lower Yafa Sultanate of Rum Kingdom of Thomond West Ukrainian People's Republic Nakhon Si Thammarat Kingdom Nanyue British Togoland Khanate of Sibir Warsangali Sultanate Ahom kingdom Samanid dynasty Adamawa Emirate Kingdom of Libya Federation of South Arabia Dominion of Pakistan Tsardom of Russia Kingdom of Gomma Kingdom of Hanover Kingdom of Poland Hammadid dynasty Powys Fadog Kalmar Union Kingdom of Hungary Kingdom of Kartli-Kakheti Croatia in personal union with Hungary Mali Empire Republic of Central Lithuania Bavaria Golden Ambrosian Republic Duchy of Modena and Reggio Kingdom of Pamplona Pskov Republic Principality of Achaea Principality of Theodoro Kingdom of Italy Kingdom of Funan Republic of Dahomey Republic of Madawaska Batavian Republic Toucouleur Empire Palmyrene Empire Kuru Kingdom Johor Sultanate Commonwealth of England Upingtonia Yemen Arab Republic Saar Protectorate United States of Stellaland Stellaland Duchy of Masovia Injuids Mataram Sultanate Hariphunchai West Pakistan Sukhothai Kingdom Limmu-Ennarea Second French Empire Pagaruyung Kingdom Soviet Union Bahawalpur State Bijapur Sultanate Samma dynasty Ghaznavid Empire People's Republic of Hungary Couto Misto Indo-Greek Kingdom Kingdom of Holland Kingdom of Italy Medes Principality of Serbia Qing dynasty Duchy of Courland and Semigallia Sui dynasty Aro Confederacy Kingdom of Armenia Durrani Empire Kingdom of Seville Bosporan Kingdom Aerican Empire Powys Wenwynwyn Republic of Salé Federal Republic of Central America Delhi Sultanate Italian Social Republic Kruševo Republic Cheng Han Kingdom of Wessex Federation of Arab Republics Prussia Kingdom of Northumbria Xia State of Brazil Anglo-Egyptian Sudan Free City of Danzig French India Kingdom of Serbia Kingdom of Poland Astrakhan Khanate East Pakistan Kingdom of Croatia Free State of Schaumburg-Lippe Kingdom of Toledo Mali Federation Songhai Empire Second Polish Republic Portuguese Mozambique Chola dynasty Kingdom of Córdoba Kingdom of Redonda Taifa of Niebla Gallic Empire Adiabene Kingdom of Prussia Conch Republic Yamhad Ouaddai Empire First Portuguese Republic Muang Phuan Kingdom of Brycheiniog United Suvadive Republic Finnish Socialist Workers' Republic Grand Duchy of Westarctica County of Holland Czech and Slovak Federal Republic Neustria Francia Ammon Shunga Empire Kingdom of Great Britain Later Shu Kingdom of Yugoslavia Dahomey Republic of Genoa East Germany Kingdom of Jaén Kamarupa Brandenburg-Prussia Balhae Jolof Empire Northern Liang Soviet Russia People's Republic of the Congo West Indies Federation Mountainous Republic of the Northern Caucasus Karabakh Khanate Gold Coast Kingdom of Egypt Jaffna kingdom Polish–Lithuanian Commonwealth Holy Roman Empire Netherlands Antilles Odrysian kingdom Suriname Kingdom of Bernicia Tulunids Lu Tibet Baekje Kadamba Dynasty Kingdom of Galicia Alodia Northern Qi Kakatiya dynasty Cook Islands Lordship of Brecknock Zunghar Khanate Kingdom of Bohemia United Arab Republic Kingdom of Hungary Portuguese India Kingdom of Illyria Chinese Soviet Republic Somali Democratic Republic Neo-Babylonian Empire Socialist Republic of Serbia South Yemen Armenian Kingdom of Cilicia Kingdom of Thessalonica Ostrogothic Kingdom Kingdom of Aragon Kahlur State Principality of Sealand Hatay State Kingdom of Navarre Kathiri State of the Teutonic Order Idrisid dynasty Kingdom of Powys First Spanish Republic Serbian Despotate Protectorate of Peru Marinid dynasty Democratic Republic of Azerbaijan Kingdom of Castile Kingdom of Dali Tanganyika Territory Dʿmt Sint Maarten Russian Republic Argentine Confederation Kingdom of Laos Kingdom of Arles Crimean Khanate Republic of Upper Volta Principality of Antioch Republic of Serbian Krajina Kingdom of Cyprus Basutoland Travancore-Cochin Kingdom of Albania First Brazilian Republic Orange Free State Duchy of Bohemia Septinsular Republic Western Yan Kara Koyunlu Northern Zhou Arthedain Buyeo kingdom Kingdom of Kongo Southwestern Somalia Silla Deccan sultanates Kingdom of Greece Aruba Second East Turkestan Republic Nogai Horde Medang Kingdom Western Satraps Kingdom of the Hwicce empire of Trebizond Austrian Empire Hatay Union between Sweden and Norway Sikh Empire Republic of Venice Qasim Khanate Magadha Goryeo United Kingdom of Portugal, Brazil and the Algarves Kingdom of Jerusalem Qi West Germany Northland State Lydenburg Republic Thonburi Kingdom Kingdom of Bulgaria Republic of Taiwan Kingdom of Spain under Joseph Bonaparte Bornu Empire Serbia and Montenegro Finnish Democratic Republic Kamerun Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Kingdom of Italy Indo-Parthian Kingdom Congo Free State Kingdom of Khotan Empire of Nicea Kingdom of Galicia and Lodomeria Ryukyu Kingdom Kingdom of Valencia Taifa of Arjona Sena dynasty Majapahit Serbian Empire Murrawarri Republic Chenla Kingdom Colonial Brazil Bit Agusi Mutawakkilite Kingdom of Yemen Papal States Taebong Kingdom of León Caucasian Albania Nazi Germany Pandyan Dynasty British North America Nieuwe Republiek Grand Duchy of Moscow Manchukuo Kingdom of Strathclyde Griqualand East Republic of Brescia Crown of Castile Kingdom of Nicoya Kingdom of Bavaria Kingdom of Mysore Dacia First Mexican Empire Republic of Ararat Republic of Texas Kingdom of Sardinia Duchy of Normandy Kingdom of France Despotate of Epirus Western Wei Germiyanids Kingdom of Murcia Free State of Prussia Later Zhao Russian Soviet Federative Socialist Republic Sovereign Principality of the United Netherlands Western Liang Kingdom of Mercia Kingdom of Israel Second Spanish Republic State of Katanga Kingdom of England Waalo Karamanids Curaçao Kingdom of Nepal Judah State of Aden Shu Han Qu'aiti Saloum Bahmani Sultanate Egypt Eyalet Spain under the Restoration Elmet Republic of Hungary Himyarite Kingdom Provisional Government of Hawaii Travancore Former Shu Akkadian empire Czechoslovakia Bamana Empire Kingdom of Araucanía and Patagonia Taurida Soviet Socialist Republic History of Lippe Helvetic Republic Republic of Maryland Ayyubid dynasty Tanganyika Yugoslavia Republic of Saugeais Southern Han Kingdom of Rwanda Hubaekje Orange River Colony Tashkent State Tashkent Khanate Kingdom of Makuria Konbaung Dynasty Taifa of Orihuela Lan Xang Xia dynasty Cossack Hetmanate Slovak Socialist Republic Los Altos, Central America Kingdom of Montenegro Khanate of Kokand Guelders Gupta Empire Libyan Arab Jamahiriya Sultanate of Sulu Lithuanian–Belorussian Soviet Socialist Republic Kingdom of Lombardy–Venetia Republic of Connaught Moldavian Democratic Republic Chera Dynasty Duchy of the Archipelago Chagatai Khanate Adal Sultanate Tyrconnell Diauehi Qutb Shahi dynasty Dutch Gold Coast Kingdom of Israel Principality of Seborga Grand Duchy of Lithuania Republic of South Carolina Almoravid dynasty Kingdom of Burundi Principality of Galilee Duchy of Brittany Kingdom of Sussex Shang dynasty Kingdom of Deheubarth Zand dynasty Provisional Revolutionary Government of the Republic of South Vietnam Principality of Lower Pannonia Seleucid Empire Inca Nanda Empire Parthian Empire Novgorod Republic Kingdom of Sicily People's Republic of Poland Far Eastern Republic Realm of Stefan Dragutin Duchy of Teschen Republic of Georgia Lithuanian Soviet Socialist Republic Rashidun Caliphate Kara-Khitan Khanate Natalia Republic Emirate of Dhala Colony and Protectorate of Nigeria Weimar Republic
419
action count
action approx
action find_reverse_tuple_counts
relation capital of
type state
type city
action count
action filter_type
action find
entity Serbia and Montenegro
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?p ) WHERE { ?i rdf:type ontology:state . ?q rdf:type ontology:city . ?q property:capital_of ?i } GROUP BY ?i } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { resource:Serbia_and_Montenegro property:capital_of ?j . ?j rdf:type ontology:state } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q501684
P1376
Q7275 Q515
USER
And also tell me about Kingdom of Gomma?
(c(Q515),P1376,c(Q7275))
action count
action approx
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_type
action find
entity Q501684
relation P1376
type Q7275
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?o ) WHERE { ?n rdf:type ontology:Q7275 . ?k rdf:type ontology:Q515 . ?k property:P1376 ?n } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Q501684 property:P1376 ?x . ?x rdf:type ontology:Q7275 } } . FILTER ( ?o = ?z ) }
Kingdom of Gomma
action count
action approx
action find_reverse_tuple_counts
relation capital of
type state
type city
action count
action filter_type
action find
entity Kingdom of Gomma
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?o ) WHERE { ?n rdf:type ontology:state . ?k rdf:type ontology:city . ?k property:capital_of ?n } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Kingdom_of_Gomma property:capital_of ?x . ?x rdf:type ontology:state } } . FILTER ( ?o = ?z ) }
[]
state city
SYSTEM
419
Q230791 Q1193822 Q46652 Q7559152 Q568523 Q788071 Q207162 Q572222 Q1275158 Q3456417 Q152855 Q174193 Q466581 Q110888 Q1471995 Q1295806 Q975405 Q1688151 Q457167 Q1483643 Q827040 Q797527 Q190513 Q889374 Q2308237 Q486181 Q775550 Q31454 Q834486 Q2006542 Q186096 Q501684 Q164079 Q1649871 Q588672 Q2564694 Q62623 Q171150 Q282475 Q1789596 Q184536 Q523380 Q980 Q746443 Q252580 Q3446210 Q317078 Q332005 Q874954 Q172579 Q867782 Q798431 Q1269910 Q188553 Q536476 Q877875 Q1068408 Q1150344 Q330362 Q8146595 Q267584 Q310293 Q1362278 Q1269234 Q2361927 Q1067513 Q402145 Q255931 Q2342822 Q863279 Q1468426 Q71092 Q3177715 Q15180 Q800236 Q83821 Q27260 Q249578 Q16410 Q953432 Q215643 Q212278 Q223936 Q8735 Q13107370 Q8733 Q156038 Q7405 Q761370 Q208404 Q467627 Q1796239 Q321371 Q1152445 Q2670639 Q2412900 Q190025 Q229411 Q153660 Q1771831 Q1069905 Q105313 Q44642 Q38872 Q107299 Q546282 Q11876909 Q541455 Q216173 Q646374 Q241748 Q577867 Q210163 Q842931 Q858841 Q427703 Q2301372 Q216632 Q202687 Q207272 Q889394 Q151148 Q1796198 Q2419932 Q2668600 Q273025 Q149747 Q27306 Q1123960 Q617218 Q1132786 Q167360 Q1186434 Q954585 Q150069 Q1811029 Q551375 Q762943 Q1998866 Q106577 Q146246 Q473433 Q651377 Q161885 Q526507 Q191077 Q468814 Q174306 Q16957 Q1617495 Q1194765 Q157367 Q28322 Q760893 Q1539360 Q2305208 Q1152126 Q652560 Q1639475 Q1636212 Q503623 Q124943 Q1311219 Q172107 Q12548 Q25227 Q870517 Q19901436 Q623751 Q726798 Q736936 Q2444884 Q28428 Q1479952 Q303421 Q449639 Q1143524 Q2086556 Q26988 Q16949002 Q1923401 Q42585 Q170468 Q600018 Q323904 Q1117051 Q1135255 Q1477220 Q624887 Q269864 Q199841 Q335088 Q325461 Q583038 Q199442 Q860407 Q13706 Q146761 Q200262 Q1296908 Q156020 Q431575 Q769782 Q497777 Q878319 Q7251405 Q582861 Q206411 Q179293 Q26472 Q158725 Q139315 Q26273 Q139319 Q832554 Q870055 Q3271735 Q160440 Q797422 Q235030 Q211853 Q213638 Q2340665 Q1538311 Q2657134 Q2414171 Q218023 Q2162698 Q1077630 Q1149230 Q324470 Q551067 Q2264735 Q28511 Q796583 Q1136259 Q28456 Q1183649 Q209065 Q21203 Q10988528 Q631210 Q402580 Q2086608 Q733799 Q178913 Q131964 Q83274 Q62589 Q83572 Q4948 Q836169 Q234009 Q28208 Q903779 Q55502 Q1319681 Q713750 Q2552742 Q220167 Q1115291 Q147909 Q319881 Q1709185 Q894030 Q37024 Q62519 Q668294 Q83286 Q210036 Q3755547 Q1255614 Q76048 Q914898 Q181254 Q2396442 Q28025 Q142417 Q11704201 Q2428714 Q49326 Q1406298 Q14934927 Q1057118 Q2088324 Q11909456 Q580188 Q170174 Q699871 Q175276 Q177076 Q7318 Q844910 Q248452 Q552157 Q170770 Q30623 Q225890 Q5157575 Q3456373 Q217196 Q16624774 Q154195 Q266923 Q173082 Q285658 Q150061 Q170588 Q165154 Q842091 Q70972 Q187684 Q1143164 Q1324889 Q1164500 Q161036 Q2314907 Q2184 Q774783 Q994451 Q105092 Q3185305 Q178038 Q1148907 Q179876 Q206279 Q1469100 Q25279 Q1078602 Q48685 Q2378381 Q320925 Q202775 Q1471373 Q374521 Q491507 Q1044536 Q1333032 Q940741 Q289577 Q2593459 Q150058 Q571453 Q4461035 Q33946 Q762084 Q271570 Q2579852 Q107380 Q206696 Q544630 Q180114 Q431731 Q36704 Q112558 Q1198071 Q889884 Q698239 Q1142179 Q4453003 Q4453007 Q829356 Q1062422 Q764697 Q853477 Q169705 Q212439 Q1751495 Q738264 Q386496 Q696241 Q152420 Q11774 Q4843701 Q422065 Q76236 Q209857 Q2712121 Q964024 Q877155 Q777981 Q487829 Q2365048 Q4274522 Q154853 Q1148042 Q770776 Q230407 Q1549254 Q49683 Q7314513 Q75613 Q1192936 Q2109946 Q71747 Q676184 Q128938 Q837136 Q146597 Q1072362 Q680997 Q93180 Q28573 Q949268 Q1986139 Q151536 Q188586 Q211274 Q61292 Q6412664 Q671899 Q7314469 Q80211 Q12490507 Q862304 Q1029847 Q6415938 Q5148517 Q41304
(c(Q515),P1376,c(Q7275))
action count
action approx
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_type
action find
entity Q501684
relation P1376
type Q7275
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?o ) WHERE { ?n rdf:type ontology:Q7275 . ?k rdf:type ontology:Q515 . ?k property:P1376 ?n } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Q501684 property:P1376 ?x . ?x rdf:type ontology:Q7275 } } . FILTER ( ?o = ?z ) }
Kingdom of Scotland Wuyue Malacca sultanate Somali Republic Nobatia Talysh-Mughan Autonomous Republic Bourbon Restoration County of Horne Elymais Republic of Saint-Malo Kingdom of Tungning United Kingdom of Great Britain and Ireland Hoysala Empire Kingdom of Essex Former Qin Lower Yafa Sultanate of Rum Kingdom of Thomond West Ukrainian People's Republic Nakhon Si Thammarat Kingdom Nanyue British Togoland Khanate of Sibir Warsangali Sultanate Ahom kingdom Samanid dynasty Adamawa Emirate Kingdom of Libya Federation of South Arabia Dominion of Pakistan Tsardom of Russia Kingdom of Gomma Kingdom of Hanover Kingdom of Poland Hammadid dynasty Powys Fadog Kalmar Union Kingdom of Hungary Kingdom of Kartli-Kakheti Croatia in personal union with Hungary Mali Empire Republic of Central Lithuania Bavaria Golden Ambrosian Republic Duchy of Modena and Reggio Kingdom of Pamplona Pskov Republic Principality of Achaea Principality of Theodoro Kingdom of Italy Kingdom of Funan Republic of Dahomey Republic of Madawaska Batavian Republic Toucouleur Empire Palmyrene Empire Kuru Kingdom Johor Sultanate Commonwealth of England Upingtonia Yemen Arab Republic Saar Protectorate United States of Stellaland Stellaland Duchy of Masovia Injuids Mataram Sultanate Hariphunchai West Pakistan Sukhothai Kingdom Limmu-Ennarea Second French Empire Pagaruyung Kingdom Soviet Union Bahawalpur State Bijapur Sultanate Samma dynasty Ghaznavid Empire People's Republic of Hungary Couto Misto Indo-Greek Kingdom Kingdom of Holland Kingdom of Italy Medes Principality of Serbia Qing dynasty Duchy of Courland and Semigallia Sui dynasty Aro Confederacy Kingdom of Armenia Durrani Empire Kingdom of Seville Bosporan Kingdom Aerican Empire Powys Wenwynwyn Republic of Salé Federal Republic of Central America Delhi Sultanate Italian Social Republic Kruševo Republic Cheng Han Kingdom of Wessex Federation of Arab Republics Prussia Kingdom of Northumbria Xia State of Brazil Anglo-Egyptian Sudan Free City of Danzig French India Kingdom of Serbia Kingdom of Poland Astrakhan Khanate East Pakistan Kingdom of Croatia Free State of Schaumburg-Lippe Kingdom of Toledo Mali Federation Songhai Empire Second Polish Republic Portuguese Mozambique Chola dynasty Kingdom of Córdoba Kingdom of Redonda Taifa of Niebla Gallic Empire Adiabene Kingdom of Prussia Conch Republic Yamhad Ouaddai Empire First Portuguese Republic Muang Phuan Kingdom of Brycheiniog United Suvadive Republic Finnish Socialist Workers' Republic Grand Duchy of Westarctica County of Holland Czech and Slovak Federal Republic Neustria Francia Ammon Shunga Empire Kingdom of Great Britain Later Shu Kingdom of Yugoslavia Dahomey Republic of Genoa East Germany Kingdom of Jaén Kamarupa Brandenburg-Prussia Balhae Jolof Empire Northern Liang Soviet Russia People's Republic of the Congo West Indies Federation Mountainous Republic of the Northern Caucasus Karabakh Khanate Gold Coast Kingdom of Egypt Jaffna kingdom Polish–Lithuanian Commonwealth Holy Roman Empire Netherlands Antilles Odrysian kingdom Suriname Kingdom of Bernicia Tulunids Lu Tibet Baekje Kadamba Dynasty Kingdom of Galicia Alodia Northern Qi Kakatiya dynasty Cook Islands Lordship of Brecknock Zunghar Khanate Kingdom of Bohemia United Arab Republic Kingdom of Hungary Portuguese India Kingdom of Illyria Chinese Soviet Republic Somali Democratic Republic Neo-Babylonian Empire Socialist Republic of Serbia South Yemen Armenian Kingdom of Cilicia Kingdom of Thessalonica Ostrogothic Kingdom Kingdom of Aragon Kahlur State Principality of Sealand Hatay State Kingdom of Navarre Kathiri State of the Teutonic Order Idrisid dynasty Kingdom of Powys First Spanish Republic Serbian Despotate Protectorate of Peru Marinid dynasty Democratic Republic of Azerbaijan Kingdom of Castile Kingdom of Dali Tanganyika Territory Dʿmt Sint Maarten Russian Republic Argentine Confederation Kingdom of Laos Kingdom of Arles Crimean Khanate Republic of Upper Volta Principality of Antioch Republic of Serbian Krajina Kingdom of Cyprus Basutoland Travancore-Cochin Kingdom of Albania First Brazilian Republic Orange Free State Duchy of Bohemia Septinsular Republic Western Yan Kara Koyunlu Northern Zhou Arthedain Buyeo kingdom Kingdom of Kongo Southwestern Somalia Silla Deccan sultanates Kingdom of Greece Aruba Second East Turkestan Republic Nogai Horde Medang Kingdom Western Satraps Kingdom of the Hwicce empire of Trebizond Austrian Empire Hatay Union between Sweden and Norway Sikh Empire Republic of Venice Qasim Khanate Magadha Goryeo United Kingdom of Portugal, Brazil and the Algarves Kingdom of Jerusalem Qi West Germany Northland State Lydenburg Republic Thonburi Kingdom Kingdom of Bulgaria Republic of Taiwan Kingdom of Spain under Joseph Bonaparte Bornu Empire Serbia and Montenegro Finnish Democratic Republic Kamerun Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Kingdom of Italy Indo-Parthian Kingdom Congo Free State Kingdom of Khotan Empire of Nicea Kingdom of Galicia and Lodomeria Ryukyu Kingdom Kingdom of Valencia Taifa of Arjona Sena dynasty Majapahit Serbian Empire Murrawarri Republic Chenla Kingdom Colonial Brazil Bit Agusi Mutawakkilite Kingdom of Yemen Papal States Taebong Kingdom of León Caucasian Albania Nazi Germany Pandyan Dynasty British North America Nieuwe Republiek Grand Duchy of Moscow Manchukuo Kingdom of Strathclyde Griqualand East Republic of Brescia Crown of Castile Kingdom of Nicoya Kingdom of Bavaria Kingdom of Mysore Dacia First Mexican Empire Republic of Ararat Republic of Texas Kingdom of Sardinia Duchy of Normandy Kingdom of France Despotate of Epirus Western Wei Germiyanids Kingdom of Murcia Free State of Prussia Later Zhao Russian Soviet Federative Socialist Republic Sovereign Principality of the United Netherlands Western Liang Kingdom of Mercia Kingdom of Israel Second Spanish Republic State of Katanga Kingdom of England Waalo Karamanids Curaçao Kingdom of Nepal Judah State of Aden Shu Han Qu'aiti Saloum Bahmani Sultanate Egypt Eyalet Spain under the Restoration Elmet Republic of Hungary Himyarite Kingdom Provisional Government of Hawaii Travancore Former Shu Akkadian empire Czechoslovakia Bamana Empire Kingdom of Araucanía and Patagonia Taurida Soviet Socialist Republic History of Lippe Helvetic Republic Republic of Maryland Ayyubid dynasty Tanganyika Yugoslavia Republic of Saugeais Southern Han Kingdom of Rwanda Hubaekje Orange River Colony Tashkent State Tashkent Khanate Kingdom of Makuria Konbaung Dynasty Taifa of Orihuela Lan Xang Xia dynasty Cossack Hetmanate Slovak Socialist Republic Los Altos, Central America Kingdom of Montenegro Khanate of Kokand Guelders Gupta Empire Libyan Arab Jamahiriya Sultanate of Sulu Lithuanian–Belorussian Soviet Socialist Republic Kingdom of Lombardy–Venetia Republic of Connaught Moldavian Democratic Republic Chera Dynasty Duchy of the Archipelago Chagatai Khanate Adal Sultanate Tyrconnell Diauehi Qutb Shahi dynasty Dutch Gold Coast Kingdom of Israel Principality of Seborga Grand Duchy of Lithuania Republic of South Carolina Almoravid dynasty Kingdom of Burundi Principality of Galilee Duchy of Brittany Kingdom of Sussex Shang dynasty Kingdom of Deheubarth Zand dynasty Provisional Revolutionary Government of the Republic of South Vietnam Principality of Lower Pannonia Seleucid Empire Inca Nanda Empire Parthian Empire Novgorod Republic Kingdom of Sicily People's Republic of Poland Far Eastern Republic Realm of Stefan Dragutin Duchy of Teschen Republic of Georgia Lithuanian Soviet Socialist Republic Rashidun Caliphate Kara-Khitan Khanate Natalia Republic Emirate of Dhala Colony and Protectorate of Nigeria Weimar Republic
419
action count
action approx
action find_reverse_tuple_counts
relation capital of
type state
type city
action count
action filter_type
action find
entity Kingdom of Gomma
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?o ) WHERE { ?n rdf:type ontology:state . ?k rdf:type ontology:city . ?k property:capital_of ?n } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Kingdom_of_Gomma property:capital_of ?x . ?x rdf:type ontology:state } } . FILTER ( ?o = ?z ) }
[]