Simple Question (Direct)
Simple Question
Q5701882
P27
Q15617994
USER
Which administrative territory is Helen Beverley an inhabitant of ?
(Q5701882,P27,c(Q15617994))
action filter_type
action find
entity Q5701882
relation P27
type Q15617994
['Q5701882', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q5701882 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Helen Beverley
action filter_type
action find
entity Helen Beverley
relation country of citizenship
type designation for an administrative territorial entity
['Helen Beverley', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Helen_Beverley property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q5701882,P27,c(Q15617994))
action filter_type
action find
entity Q5701882
relation P27
type Q15617994
[ANSWER] is Helen Beverley an inhabitant of
['Q5701882', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q5701882 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
United States of America
United States of America is Helen Beverley an inhabitant of
United States of America
action filter_type
action find
entity Helen Beverley
relation country of citizenship
type designation for an administrative territorial entity
['Helen Beverley', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Helen_Beverley property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5701882
P25
Q502895
USER
Who is the offspring of that one ?
(c(Q502895),P25,Q30)
action filter_type
action find_reverse
entity Q5701882
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q30']
SELECT DISTINCT ?d WHERE { ?d property:P25 resource:Q5701882 . ?d rdf:type ontology:Q502895 }
Helen Beverley
action filter_type
action find_reverse
entity Helen Beverley
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'United States of America']
SELECT DISTINCT ?d WHERE { ?d property:mother resource:Helen_Beverley . ?d rdf:type ontology:common_name }
[]
common name
Q6308089
SYSTEM
Julie Cobb
Q6308089
(c(Q502895),P25,Q30)
action filter_type
action find_reverse
entity Q5701882
relation P25
type Q502895
The offspring of that one is the [ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q30']
SELECT DISTINCT ?d WHERE { ?d property:P25 resource:Q5701882 . ?d rdf:type ontology:Q502895 }
Julie Cobb
The offspring of that one is the Julie Cobb
Julie Cobb
action filter_type
action find_reverse
entity Helen Beverley
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'United States of America']
SELECT DISTINCT ?d WHERE { ?d property:mother resource:Helen_Beverley . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6308089
P106
Q12737077
USER
Which occupations have that person as his/her 's career ?
(Q6308089,P106,c(Q12737077))
action filter_type
action find
entity Q6308089
relation P106
type Q12737077
['Q6308089', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q6308089 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Julie Cobb
action filter_type
action find
entity Julie Cobb
relation occupation
type occupation
['Julie Cobb', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Julie_Cobb property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q10798782 Q33999 Q2259451
SYSTEM
television actor, actor, stage actor
Q10798782 Q33999 Q2259451
(Q6308089,P106,c(Q12737077))
action filter_type
action find
entity Q6308089
relation P106
type Q12737077
[ANSWERS] have that person as his/her 's career
['Q6308089', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q6308089 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
television actor actor stage actor
Television actor, actor and stage actor have that person as his/her 's career
television actor actor stage actor
action filter_type
action find
entity Julie Cobb
relation occupation
type occupation
['Julie Cobb', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Julie_Cobb property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6308089
P21
Q290
USER
Which sex does that person belong to ?
(Q10798782,P21,c(Q290)) (Q33999,P21,c(Q290)) (Q2259451,P21,c(Q290))
action filter_type
action find
entity Q6308089
relation P21
type Q290
['Q10798782', 'P21', {'concept': 'Q290'}] ['Q33999', 'P21', {'concept': 'Q290'}] ['Q2259451', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q6308089 property:P21 ?n }
Julie Cobb
action filter_type
action find
entity Julie Cobb
relation gender
type sex
['television actor', 'gender', {'concept': 'sex'}] ['actor', 'gender', {'concept': 'sex'}] ['stage actor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Julie_Cobb property:gender ?n }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q10798782,P21,c(Q290)) (Q33999,P21,c(Q290)) (Q2259451,P21,c(Q290))
action filter_type
action find
entity Q6308089
relation P21
type Q290
That person belongs to [ANSWER]
['Q10798782', 'P21', {'concept': 'Q290'}] ['Q33999', 'P21', {'concept': 'Q290'}] ['Q2259451', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q6308089 property:P21 ?n }
female
That person belongs to female
female
action filter_type
action find
entity Julie Cobb
relation gender
type sex
['television actor', 'gender', {'concept': 'sex'}] ['actor', 'gender', {'concept': 'sex'}] ['stage actor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Julie_Cobb property:gender ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6308089
P26
Q502895
USER
Which people have that one as spouse ?
(c(Q502895),P26,Q6581072)
action filter_type
action find_reverse
entity Q6308089
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q6581072']
SELECT DISTINCT ?y WHERE { ?y property:P26 resource:Q6308089 . ?y rdf:type ontology:Q502895 }
Julie Cobb
action filter_type
action find_reverse
entity Julie Cobb
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'female']
SELECT DISTINCT ?y WHERE { ?y property:spouse resource:Julie_Cobb . ?y rdf:type ontology:common_name }
[]
common name
Q22348394 Q299483 Q1347274
SYSTEM
Christopher Morgan, James Cromwell, Victor French
Q22348394 Q299483 Q1347274
(c(Q502895),P26,Q6581072)
action filter_type
action find_reverse
entity Q6308089
relation P26
type Q502895
[ANSWERS] have that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q6581072']
SELECT DISTINCT ?y WHERE { ?y property:P26 resource:Q6308089 . ?y rdf:type ontology:Q502895 }
Christopher Morgan James Cromwell Victor French
Christopher Morgan, James Cromwell and Victor French have that one as spouse
Christopher Morgan James Cromwell Victor French
action filter_type
action find_reverse
entity Julie Cobb
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'female']
SELECT DISTINCT ?y WHERE { ?y property:spouse resource:Julie_Cobb . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q262
P1376
Q15617994 Q486972 Q515
USER
Which administrative territories have more number of human settlements or cities as their capital than Algeria ?
(c(Q486972)|c(Q515),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q262
relation P1376
type Q486972
type Q515
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?y ) { ( ontology:Q486972 ) ( ontology:Q515 ) } . ?j rdf:type ?y } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P1376 resource:Q262 . { VALUES ( ?v ) { ( ontology:Q486972 ) ( ontology:Q515 ) } . ?s rdf:type ?v } } } . FILTER ( ?b > ?n ) }
Algeria
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Algeria
relation capital of
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?y ) { ( ontology:human_settlement ) ( ontology:city ) } . ?j rdf:type ?y } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:capital_of resource:Algeria . { VALUES ( ?v ) { ( ontology:human_settlement ) ( ontology:city ) } . ?s rdf:type ?v } } } . FILTER ( ?b > ?n ) }
[]
designation for an administrative territorial entity human settlement city
Q155 Q17 Q347
SYSTEM
Brazil, Japan, Liechtenstein
Q414 Q1111401 Q252 Q399 Q258 Q155 Q736 Q843 Q2007 Q1050 Q298 Q115 Q114 Q541589 Q696651 Q948 Q639100 Q702 Q833 Q790 Q796 Q794 Q889 Q884 Q881 Q541095 Q492437 Q1037 Q1033 Q1030 Q750 Q30831 Q878 Q46130 Q3044714 Q1951 Q492430 Q711 Q717 Q1948 Q27 Q225 Q222 Q47261 Q228 Q965 Q963 Q1008 Q72670 Q568751 Q2150573 Q12536 Q3342 Q842 Q3240 Q4712 Q924 Q928 Q851 Q12717 Q347 Q3462133 Q17 Q3207 Q212 Q211 Q218 Q974 Q1019 Q1011
(c(Q486972)|c(Q515),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q262
relation P1376
type Q486972
type Q515
[ANSWERS] have more number of human settlements or cities as their capital than Algeria
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?y ) { ( ontology:Q486972 ) ( ontology:Q515 ) } . ?j rdf:type ?y } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P1376 resource:Q262 . { VALUES ( ?v ) { ( ontology:Q486972 ) ( ontology:Q515 ) } . ?s rdf:type ?v } } } . FILTER ( ?b > ?n ) }
Argentina Kispest District Indonesia Armenia South Africa Brazil Ecuador Pakistan Northwest Territories Swaziland Chile Ethiopia Kenya Ems-Supérieur Saxe-Eisenach Tunisia Principality of Reuss-Gera Federated States of Micronesia Malaysia Haiti Iraq Iran Afghanistan South Korea Vietnam Rhin-et-Moselle Bouches-du-Weser Rwanda Nigeria Namibia Bolivia Red Sea Governorate United Arab Emirates Rhône Ouest Alberta Bouches-de-l'Elbe Mongolia Venezuela Manitoba Ireland Bosnia and Herzegovina Albania Duchy of Bavaria Andorra Burkina Faso Botswana Côte d'Ivoire Batumi Oblast Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Bouches-du-Rhône Duchy of Burgundy Tanzania Philippines Saudi Arabia Bas-Rhin Liechtenstein Saxe-Coburg and Gotha Japan Aude Ukraine Latvia Romania Democratic Republic of the Congo Madagascar Cape Verde
Brazil, Japan and Liechtenstein have more number of human settlements or cities as their capital than Algeria
Brazil Japan Liechtenstein
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Algeria
relation capital of
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?y ) { ( ontology:human_settlement ) ( ontology:city ) } . ?j rdf:type ?y } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:capital_of resource:Algeria . { VALUES ( ?v ) { ( ontology:human_settlement ) ( ontology:city ) } . ?s rdf:type ?v } } } . FILTER ( ?b > ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q863
P1376
Q15617994 Q486972 Q515
USER
And also tell me about Tajikistan?
(c(Q486972)|c(Q515),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q863
relation P1376
type Q486972
type Q515
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:P1376 ?c . ?c rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q486972 } UNION { ?z property:P1376 ?c . ?c rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q515 } } GROUP BY ?c } . FILTER ( ?e > ?q ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:P1376 resource:Q863 . { { ?f rdf:type ontology:Q486972 } UNION { ?f rdf:type ontology:Q515 } } } } }
Tajikistan
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Tajikistan
relation capital of
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:capital_of ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:human_settlement } UNION { ?z property:capital_of ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:city } } GROUP BY ?c } . FILTER ( ?e > ?q ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:capital_of resource:Tajikistan . { { ?f rdf:type ontology:human_settlement } UNION { ?f rdf:type ontology:city } } } } }
[]
designation for an administrative territorial entity human settlement city
Q155 Q17 Q347
SYSTEM
Brazil, Japan, Liechtenstein
Q414 Q1111401 Q252 Q399 Q258 Q155 Q736 Q843 Q2007 Q1050 Q298 Q115 Q114 Q541589 Q696651 Q948 Q639100 Q702 Q833 Q790 Q796 Q794 Q889 Q884 Q881 Q541095 Q492437 Q1037 Q1033 Q1030 Q750 Q30831 Q878 Q46130 Q3044714 Q1951 Q492430 Q711 Q717 Q1948 Q27 Q225 Q222 Q47261 Q228 Q965 Q963 Q1008 Q72670 Q568751 Q2150573 Q12536 Q3342 Q842 Q3240 Q4712 Q924 Q928 Q851 Q12717 Q347 Q3462133 Q17 Q3207 Q212 Q211 Q218 Q974 Q1019 Q1011
(c(Q486972)|c(Q515),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q863
relation P1376
type Q486972
type Q515
[ANSWERS]
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:P1376 ?c . ?c rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q486972 } UNION { ?z property:P1376 ?c . ?c rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q515 } } GROUP BY ?c } . FILTER ( ?e > ?q ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:P1376 resource:Q863 . { { ?f rdf:type ontology:Q486972 } UNION { ?f rdf:type ontology:Q515 } } } } }
Argentina Kispest District Indonesia Armenia South Africa Brazil Ecuador Pakistan Northwest Territories Swaziland Chile Ethiopia Kenya Ems-Supérieur Saxe-Eisenach Tunisia Principality of Reuss-Gera Federated States of Micronesia Malaysia Haiti Iraq Iran Afghanistan South Korea Vietnam Rhin-et-Moselle Bouches-du-Weser Rwanda Nigeria Namibia Bolivia Red Sea Governorate United Arab Emirates Rhône Ouest Alberta Bouches-de-l'Elbe Mongolia Venezuela Manitoba Ireland Bosnia and Herzegovina Albania Duchy of Bavaria Andorra Burkina Faso Botswana Côte d'Ivoire Batumi Oblast Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Bouches-du-Rhône Duchy of Burgundy Tanzania Philippines Saudi Arabia Bas-Rhin Liechtenstein Saxe-Coburg and Gotha Japan Aude Ukraine Latvia Romania Democratic Republic of the Congo Madagascar Cape Verde
Brazil Japan Liechtenstein
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Tajikistan
relation capital of
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:capital_of ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:human_settlement } UNION { ?z property:capital_of ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:city } } GROUP BY ?c } . FILTER ( ?e > ?q ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:capital_of resource:Tajikistan . { { ?f rdf:type ontology:human_settlement } UNION { ?f rdf:type ontology:city } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q79
P530
Q15617994 Q15617994
USER
How many administrative territories holds diplomatic relationship with more number of administrative territories than Egypt ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q79
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?d ) WHERE { ?h property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Q79 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?d > ?r ) }
Egypt
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Egypt
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?d ) WHERE { ?h property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Egypt property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d > ?r ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
12
Q801 Q805 Q142 Q145 Q148 Q403 Q159 Q155 Q30 Q38 Q17 Q1011
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q79
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?d ) WHERE { ?h property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Q79 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?d > ?r ) }
Israel Yemen France United Kingdom People's Republic of China Serbia Russia Brazil United States of America Italy Japan Cape Verde
12
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Egypt
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?d ) WHERE { ?h property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Egypt property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d > ?r ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q79
P276
Q1914636
USER
What are located at that administrative territory ?
action filter_type
action find_reverse
entity Q79
relation P276
type Q1914636
SELECT DISTINCT ?t WHERE { ?t property:P276 resource:Q79 . ?t rdf:type ontology:Q1914636 }
Egypt
action filter_type
action find_reverse
entity Egypt
relation location
type activity
SELECT DISTINCT ?t WHERE { ?t property:location resource:Egypt . ?t rdf:type ontology:activity }
[]
activity
Q29198 Q3720660
SYSTEM
2011 Egyptian revolution, 2012–2013 Egyptian protests
Q29198 Q3720660
action filter_type
action find_reverse
entity Q79
relation P276
type Q1914636
[ANSWERS] are located at that administrative territory
SELECT DISTINCT ?t WHERE { ?t property:P276 resource:Q79 . ?t rdf:type ontology:Q1914636 }
2011 Egyptian revolution 2012–2013 Egyptian protests
2011 Egyptian revolution and 2012–2013 Egyptian protests are located at that administrative territory
2011 Egyptian revolution 2012–2013 Egyptian protests
action filter_type
action find_reverse
entity Egypt
relation location
type activity
SELECT DISTINCT ?t WHERE { ?t property:location resource:Egypt . ?t rdf:type ontology:activity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q79
P6
Q502895
USER
Who is the head of the government of Egypt ?
(Q79,P6,c(Q502895))
action filter_type
action find
entity Q79
relation P6
type Q502895
['Q79', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q79 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Egypt
action filter_type
action find
entity Egypt
relation head of government
type common name
['Egypt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Egypt property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
common name
Q16250142
SYSTEM
Sherif Ismail
Q16250142
(Q79,P6,c(Q502895))
action filter_type
action find
entity Q79
relation P6
type Q502895
The head of the government of Egypt is the [ANSWER]
['Q79', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q79 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Sherif Ismail
The head of the government of Egypt is the Sherif Ismail
Sherif Ismail
action filter_type
action find
entity Egypt
relation head of government
type common name
['Egypt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Egypt property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16250142
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q16250142,P39,c(Q12737077))
action filter_type
action find
entity Q16250142
relation P39
type Q12737077
['Q16250142', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q16250142 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Sherif Ismail
action filter_type
action find
entity Sherif Ismail
relation position held
type occupation
['Sherif Ismail', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Sherif_Ismail property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q1571396
SYSTEM
Prime Minister of Egypt
Q1571396
(Q16250142,P39,c(Q12737077))
action filter_type
action find
entity Q16250142
relation P39
type Q12737077
The [ANSWER]
['Q16250142', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q16250142 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Prime Minister of Egypt
The Prime Minister of Egypt
Prime Minister of Egypt
action filter_type
action find
entity Sherif Ismail
relation position held
type occupation
['Sherif Ismail', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Sherif_Ismail property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1571396
P1313
Q15617994
USER
Which administrative territory has that occupation as title of head of government ?
(c(Q15617994),P1313,Q1571396)
action filter_type
action find_reverse
entity Q1571396
relation P1313
type Q15617994
[{'concept': 'Q15617994'}, 'P1313', 'Q1571396']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . ?q property:P1313 resource:Q1571396 }
Prime Minister of Egypt
action filter_type
action find_reverse
entity Prime Minister of Egypt
relation office held by head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', 'Prime Minister of Egypt']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:office_held_by_head_of_government resource:Prime_Minister_of_Egypt }
[]
designation for an administrative territorial entity
Q79
SYSTEM
Egypt
Q79
(c(Q15617994),P1313,Q1571396)
action filter_type
action find_reverse
entity Q1571396
relation P1313
type Q15617994
[ANSWER] has that occupation as title of head of government
[{'concept': 'Q15617994'}, 'P1313', 'Q1571396']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . ?q property:P1313 resource:Q1571396 }
Egypt
Egypt has that occupation as title of head of government
Egypt
action filter_type
action find_reverse
entity Prime Minister of Egypt
relation office held by head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', 'Prime Minister of Egypt']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:office_held_by_head_of_government resource:Prime_Minister_of_Egypt }
[]