Simple Question (Direct)
Simple Question
Q1441741
P39
Q12737077
USER
Which occupation was a position held by Francis Stillman Barnard ?
(Q1441741,P39,c(Q12737077))
action filter_type
action find
entity Q1441741
relation P39
type Q12737077
['Q1441741', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1441741 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Francis Stillman Barnard
action filter_type
action find
entity Francis Stillman Barnard
relation position held
type occupation
['Francis Stillman Barnard', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Francis_Stillman_Barnard property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q15964890
SYSTEM
member of the House of Commons of Canada
Q15964890
(Q1441741,P39,c(Q12737077))
action filter_type
action find
entity Q1441741
relation P39
type Q12737077
A [ANSWER] was a position held by Francis Stillman Barnard
['Q1441741', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1441741 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
member of the House of Commons of Canada
A member of the House of Commons of Canada was a position held by Francis Stillman Barnard
member of the House of Commons of Canada
action filter_type
action find
entity Francis Stillman Barnard
relation position held
type occupation
['Francis Stillman Barnard', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Francis_Stillman_Barnard property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1441741
P21
Q290
USER
Which sex does that person possess ?
(Q15964890,P21,c(Q290))
action filter_type
action find
entity Q1441741
relation P21
type Q290
['Q15964890', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q1441741 property:P21 ?d }
Francis Stillman Barnard
action filter_type
action find
entity Francis Stillman Barnard
relation gender
type sex
['member of the House of Commons of Canada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Francis_Stillman_Barnard property:gender ?d }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15964890,P21,c(Q290))
action filter_type
action find
entity Q1441741
relation P21
type Q290
That person possesses a [ANSWER]
['Q15964890', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q1441741 property:P21 ?d }
male
That person possesses a male
male
action filter_type
action find
entity Francis Stillman Barnard
relation gender
type sex
['member of the House of Commons of Canada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Francis_Stillman_Barnard property:gender ?d }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20676821 Q1441741
P27
Q1048835
USER
Which political territories are the native countriesof Francis Stillman Barnard or Nigel Gray ?
OR((Q1441741,P27,c(Q1048835)), (Q20676821,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1441741
relation P27
action find
entity Q20676821
relation P27
type Q1048835
{'OR': [['Q1441741', 'P27', {'concept': 'Q1048835'}], ['Q20676821', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { ?d property:P27 ?f . VALUES ( ?d ) { ( resource:Q1441741 ) ( resource:Q20676821 ) } } . ?f rdf:type ontology:Q1048835 }
Nigel Gray Francis Stillman Barnard
action filter_type
action union
action find
entity Francis Stillman Barnard
relation country of citizenship
action find
entity Nigel Gray
relation country of citizenship
type political territorial entity
{'OR': [['Francis Stillman Barnard', 'country of citizenship', {'concept': 'political territorial entity'}], ['Nigel Gray', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { ?d property:country_of_citizenship ?f . VALUES ( ?d ) { ( resource:Francis_Stillman_Barnard ) ( resource:Nigel_Gray ) } } . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q408
SYSTEM
Canada, Australia
Q16 Q408
OR((Q1441741,P27,c(Q1048835)), (Q20676821,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1441741
relation P27
action find
entity Q20676821
relation P27
type Q1048835
[ANSWERS] are the native countriesof Francis Stillman Barnard or Nigel Gray
{'OR': [['Q1441741', 'P27', {'concept': 'Q1048835'}], ['Q20676821', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { ?d property:P27 ?f . VALUES ( ?d ) { ( resource:Q1441741 ) ( resource:Q20676821 ) } } . ?f rdf:type ontology:Q1048835 }
Canada Australia
Canada and Australia are the native countriesof Francis Stillman Barnard or Nigel Gray
Canada Australia
action filter_type
action union
action find
entity Francis Stillman Barnard
relation country of citizenship
action find
entity Nigel Gray
relation country of citizenship
type political territorial entity
{'OR': [['Francis Stillman Barnard', 'country of citizenship', {'concept': 'political territorial entity'}], ['Nigel Gray', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { ?d property:country_of_citizenship ?f . VALUES ( ?d ) { ( resource:Francis_Stillman_Barnard ) ( resource:Nigel_Gray ) } } . ?f rdf:type ontology:political_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
How many political territories do less number of people belong to than that political territory ?
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity common name
Comparative|Count over More/Less|Single entity type|Clarification
Q408
SYSTEM
Did you mean Australia ?
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Did you mean Australia ?
Australia
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Canada. Could you tell me the answer for that?
(c(Q502895),P27,c(Q1048835))
Q16
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
[]
SYSTEM
65
Q635755 Q668384 Q1000 Q193714 Q1747689 Q746558 Q838261 Q785 Q193619 Q691 Q769 Q685 Q699964 Q763 Q1232887 Q664 Q766 Q22880 Q170361 Q1054923 Q10557 Q5720 Q505610 Q693551 Q13353 Q494354 Q650489 Q781 Q5705 Q757 Q168159 Q5785 Q35 Q109128 Q3306663 Q190959 Q11266977 Q223793 Q3995 Q130842 Q40 Q18221 Q650682 Q778 Q408 Q9676 Q217829 Q100166 Q9648 Q234 Q4040 Q2991382 Q309460 Q129286 Q168651 Q3908 Q9337 Q23635 Q192184 Q25228 Q31747 Q25305 Q79965 Q157070 Q170604
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Odieta Medellín Gabon Mandatory Palestine Ancient Rome Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Papua New Guinea Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis County of Savoy New Zealand Jamaica Electoral Palatinate Saar British Hong Kong Swabia Valencian Country Flintshire Landgraviate of Hesse-Darmstadt Montserrat Kara-Khanid Khanate Margraviate of Baden Antigua and Barbuda Catalonia Saint Vincent and the Grenadines Anglesey Cayman Islands Denmark Gwynedd Merthyr Tydfil County Borough Transvaal Epirus Kingdom of Etruria Basque Country Greater Lebanon Austria Turks and Caicos Islands Denbighshire The Bahamas Australia Isle of Man Ceredigion Orkney Islands Falkland Islands Flemish Region Aragon County of Provence County of Hainaut British Raj Landgraviate of Hesse-Kassel Galicia Flemish Region Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands Golden Horde County of Flanders New France
65
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q16
P530
Q15617994
USER
How many administrative territories holds diplomatic relationship with Canada ?
(Q16,P530,c(Q15617994))
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
['Q16', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:Q16 property:P530 ?s . ?s rdf:type ontology:Q15617994 }
Canada
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:Canada property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
34
Q804 Q801 Q843 Q1029 Q711 Q145 Q229 Q33 Q30 Q36 Q34 Q77 Q39 Q1028 Q878 Q739 Q833 Q423 Q1030 Q851 Q29999 Q928 Q252 Q258 Q212 Q38 Q159 Q43 Q155 Q218 Q20 Q79 Q115 Q884
(Q16,P530,c(Q15617994))
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[ANSWER]
['Q16', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:Q16 property:P530 ?s . ?s rdf:type ontology:Q15617994 }
Panama Israel Pakistan Mozambique Mongolia United Kingdom Cyprus Finland United States of America Poland Sweden Uruguay Switzerland Morocco United Arab Emirates Colombia Malaysia North Korea Namibia Saudi Arabia Kingdom of the Netherlands Philippines Indonesia South Africa Ukraine Italy Russia Turkey Brazil Romania Norway Egypt Ethiopia South Korea
34
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:Canada property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q183
P530
Q15617994
USER
And what about Germany?
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Q183 property:P530 ?p . ?p rdf:type ontology:Q15617994 }
Germany
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Germany property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
124
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Q183 property:P530 ?p . ?p rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
124
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Germany property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q222
Q15617994
USER
And how about Albania?
(Q222,P530,c(Q15617994))
action count
action filter_type
action find
entity Q222
relation P530
type Q15617994
['Q222', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q222 property:P530 ?h . ?h rdf:type ontology:Q15617994 }
Albania
action count
action filter_type
action find
entity Albania
relation diplomatic relation
type designation for an administrative territorial entity
['Albania', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Albania property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
(Q222,P530,c(Q15617994))
action count
action filter_type
action find
entity Q222
relation P530
type Q15617994
[ANSWER]
['Q222', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q222 property:P530 ?h . ?h rdf:type ontology:Q15617994 }
4
action count
action filter_type
action find
entity Albania
relation diplomatic relation
type designation for an administrative territorial entity
['Albania', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Albania property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q222
P206
Q15324
USER
Which body of water is situated nearby that administrative territory ?
action filter_type
action find
entity Q222
relation P206
type Q15324
SELECT DISTINCT ?w WHERE { resource:Q222 property:P206 ?w . ?w rdf:type ontology:Q15324 }
Albania
action filter_type
action find
entity Albania
relation located next to body of water
type body of water
SELECT DISTINCT ?w WHERE { resource:Albania property:located_next_to_body_of_water ?w . ?w rdf:type ontology:body_of_water }
[]
body of water
Q13924
SYSTEM
Adriatic Sea
Q13924
action filter_type
action find
entity Q222
relation P206
type Q15324
Sea [ANSWER] is situated nearby that administrative territory
SELECT DISTINCT ?w WHERE { resource:Q222 property:P206 ?w . ?w rdf:type ontology:Q15324 }
Adriatic Sea
Sea Adriatic Sea is situated nearby that administrative territory
Adriatic Sea
action filter_type
action find
entity Albania
relation located next to body of water
type body of water
SELECT DISTINCT ?w WHERE { resource:Albania property:located_next_to_body_of_water ?w . ?w rdf:type ontology:body_of_water }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q408 Q846
P463
Q484652
USER
How many international organizations were Australia and Qatar a member of ?
(Q408,P463,c(Q484652)) (Q846,P463,c(Q484652))
action count
action intersection
action filter_type
action find
entity Q408
relation P463
type Q484652
action filter_type
action find
entity Q846
relation P463
type Q484652
['Q408', 'P463', {'concept': 'Q484652'}] ['Q846', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:Q408 property:P463 ?g . ?g rdf:type ontology:Q484652 . ?g rdf:type ontology:Q484652 . resource:Q846 property:P463 ?g }
Australia Qatar
action count
action intersection
action filter_type
action find
entity Australia
relation member of
type international organization
action filter_type
action find
entity Qatar
relation member of
type international organization
['Australia', 'member of', {'concept': 'international organization'}] ['Qatar', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:Australia property:member_of ?g . ?g rdf:type ontology:international_organization . ?g rdf:type ontology:international_organization . resource:Qatar property:member_of ?g }
[]
international organization
SYSTEM
2
Q1065 Q1043527
(Q408,P463,c(Q484652)) (Q846,P463,c(Q484652))
action count
action intersection
action filter_type
action find
entity Q408
relation P463
type Q484652
action filter_type
action find
entity Q846
relation P463
type Q484652
[ANSWER]
['Q408', 'P463', {'concept': 'Q484652'}] ['Q846', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:Q408 property:P463 ?g . ?g rdf:type ontology:Q484652 . ?g rdf:type ontology:Q484652 . resource:Q846 property:P463 ?g }
United Nations Multilateral Investment Guarantee Agency
2
action count
action intersection
action filter_type
action find
entity Australia
relation member of
type international organization
action filter_type
action find
entity Qatar
relation member of
type international organization
['Australia', 'member of', {'concept': 'international organization'}] ['Qatar', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:Australia property:member_of ?g . ?g rdf:type ontology:international_organization . ?g rdf:type ontology:international_organization . resource:Qatar property:member_of ?g }
[]