Simple Question (Direct)
Simple Question
Q3550122
P69
Q3918
USER
What is the university where Gregorio Perfecto was educated ?
(Q3550122,P69,c(Q3918))
action filter_type
action find
entity Q3550122
relation P69
type Q3918
['Q3550122', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?r WHERE { resource:Q3550122 property:P69 ?r . ?r rdf:type ontology:Q3918 }
Gregorio Perfecto
action filter_type
action find
entity Gregorio Perfecto
relation educated at
type university
['Gregorio Perfecto', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?r WHERE { resource:Gregorio_Perfecto property:educated_at ?r . ?r rdf:type ontology:university }
[]
university
Q1401524
SYSTEM
University of Santo Tomas
Q1401524
(Q3550122,P69,c(Q3918))
action filter_type
action find
entity Q3550122
relation P69
type Q3918
The university Gregorio Perfecto was educated is the [ANSWER]
['Q3550122', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?r WHERE { resource:Q3550122 property:P69 ?r . ?r rdf:type ontology:Q3918 }
University of Santo Tomas
The university Gregorio Perfecto was educated is the University of Santo Tomas
University of Santo Tomas
action filter_type
action find
entity Gregorio Perfecto
relation educated at
type university
['Gregorio Perfecto', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?r WHERE { resource:Gregorio_Perfecto property:educated_at ?r . ?r rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3550122
P1050
Q2057971
USER
What has Gregorio Perfecto contracted ?
(Q3550122,P1050,c(Q2057971))
action filter_type
action find
entity Q3550122
relation P1050
type Q2057971
['Q3550122', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { resource:Q3550122 property:P1050 ?i . ?i rdf:type ontology:Q2057971 }
Gregorio Perfecto
action filter_type
action find
entity Gregorio Perfecto
relation medical condition
type health problem
['Gregorio Perfecto', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { resource:Gregorio_Perfecto property:medical_condition ?i . ?i rdf:type ontology:health_problem }
[]
health problem
Q1049655
SYSTEM
paraplegia
Q1049655
(Q3550122,P1050,c(Q2057971))
action filter_type
action find
entity Q3550122
relation P1050
type Q2057971
Gregorio Perfecto has contracted to [ANSWER]
['Q3550122', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { resource:Q3550122 property:P1050 ?i . ?i rdf:type ontology:Q2057971 }
paraplegia
Gregorio Perfecto has contracted to paraplegia
paraplegia
action filter_type
action find
entity Gregorio Perfecto
relation medical condition
type health problem
['Gregorio Perfecto', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { resource:Gregorio_Perfecto property:medical_condition ?i . ?i rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3550122
P39
Q12737077
USER
What was the position held by Gregorio Perfecto ?
(Q3550122,P39,c(Q12737077))
action filter_type
action find
entity Q3550122
relation P39
type Q12737077
['Q3550122', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q3550122 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Gregorio Perfecto
action filter_type
action find
entity Gregorio Perfecto
relation position held
type occupation
['Gregorio Perfecto', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Gregorio_Perfecto property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q18002923
SYSTEM
Member of the House of Representatives of the Philippines
Q18002923
(Q3550122,P39,c(Q12737077))
action filter_type
action find
entity Q3550122
relation P39
type Q12737077
The position held by Gregorio Perfecto was a [ANSWER]
['Q3550122', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q3550122 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Member of the House of Representatives of the Philippines
The position held by Gregorio Perfecto was a Member of the House of Representatives of the Philippines
Member of the House of Representatives of the Philippines
action filter_type
action find
entity Gregorio Perfecto
relation position held
type occupation
['Gregorio Perfecto', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Gregorio_Perfecto property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18002923
P1001
Q15617994
USER
Which administrative territory belongs to jurisdiction of that occupation ?
(Q18002923,P1001,c(Q15617994))
action filter_type
action find
entity Q18002923
relation P1001
type Q15617994
['Q18002923', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q18002923 property:P1001 ?n }
Member of the House of Representatives of the Philippines
action filter_type
action find
entity Member of the House of Representatives of the Philippines
relation applies to jurisdiction
type designation for an administrative territorial entity
['Member of the House of Representatives of the Philippines', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Member_of_the_House_of_Representatives_of_the_Philippines property:applies_to_jurisdiction ?n }
[]
designation for an administrative territorial entity
Q928
SYSTEM
Philippines
Q928
(Q18002923,P1001,c(Q15617994))
action filter_type
action find
entity Q18002923
relation P1001
type Q15617994
Are [ANSWER] belongs to jurisdiction of that occupation
['Q18002923', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q18002923 property:P1001 ?n }
Philippines
Are Philippines belongs to jurisdiction of that occupation
Philippines
action filter_type
action find
entity Member of the House of Representatives of the Philippines
relation applies to jurisdiction
type designation for an administrative territorial entity
['Member of the House of Representatives of the Philippines', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Member_of_the_House_of_Representatives_of_the_Philippines property:applies_to_jurisdiction ?n }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q298
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with less number of administrative territories than Chile ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q298
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?d ) WHERE { ?f property:P530 ?k . ?f rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a rdf:type ontology:Q15617994 . resource:Q298 property:P530 ?a } } . FILTER ( ?d < ?e ) }
Chile
action count
action less
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 Chile
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 ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?d ) WHERE { ?f property:diplomatic_relation ?k . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Chile property:diplomatic_relation ?a } } . FILTER ( ?d < ?e ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
95
Q702 Q804 Q800 Q55 Q262 Q783 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q983 Q851 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q224 Q221 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q298
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?d ) WHERE { ?f property:P530 ?k . ?f rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a rdf:type ontology:Q15617994 . resource:Q298 property:P530 ?a } } . FILTER ( ?d < ?e ) }
Federated States of Micronesia Panama Costa Rica Netherlands Algeria Honduras Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Equatorial Guinea Saudi Arabia Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Croatia Republic of Macedonia Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga New Caledonia Thailand
95
action count
action less
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 Chile
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 ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?d ) WHERE { ?f property:diplomatic_relation ?k . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Chile property:diplomatic_relation ?a } } . FILTER ( ?d < ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q398
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with approximately the same number of administrative territories as Bahrain ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g rdf:type ontology:Q15617994 . resource:Q398 property:P530 ?g } } . FILTER ( ?p = ?x ) . { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?h } }
Bahrain
action count
action approx
action find_reverse_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 Bahrain
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 ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bahrain property:diplomatic_relation ?g } } . FILTER ( ?p = ?x ) . { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
154
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 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 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g rdf:type ontology:Q15617994 . resource:Q398 property:P530 ?g } } . FILTER ( ?p = ?x ) . { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?h } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium 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 Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
154
action count
action approx
action find_reverse_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 Bahrain
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 ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bahrain property:diplomatic_relation ?g } } . FILTER ( ?p = ?x ) . { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q928 Q846
P530
Q1048835
USER
How many political territories are known to have diplomatic connections with Philippines and Qatar ?
(c(Q1048835),P530,Q928) (c(Q1048835),P530,Q846)
action count
action intersection
action filter_type
action find_reverse
entity Q928
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q846
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q928'] [{'concept': 'Q1048835'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:P530 resource:Q928 . ?h rdf:type ontology:Q1048835 . ?h property:P530 resource:Q846 . ?h rdf:type ontology:Q1048835 }
Philippines Qatar
action count
action intersection
action filter_type
action find_reverse
entity Philippines
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Philippines'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:diplomatic_relation resource:Philippines . ?h rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation resource:Qatar . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q16
(c(Q1048835),P530,Q928) (c(Q1048835),P530,Q846)
action count
action intersection
action filter_type
action find_reverse
entity Q928
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q846
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q928'] [{'concept': 'Q1048835'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:P530 resource:Q928 . ?h rdf:type ontology:Q1048835 . ?h property:P530 resource:Q846 . ?h rdf:type ontology:Q1048835 }
Australia Canada
2
action count
action intersection
action filter_type
action find_reverse
entity Philippines
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Philippines'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:diplomatic_relation resource:Philippines . ?h rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation resource:Qatar . ?h rdf:type ontology:political_territorial_entity }
[]