Simple Question (Direct)
Simple Question
Q2353585
P1196
Q1914636
USER
Which activity best describes with type of death of Francis Cadell ?
(Q2353585,P1196,c(Q1914636))
action filter_type
action find
entity Q2353585
relation P1196
type Q1914636
['Q2353585', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1914636 . resource:Q2353585 property:P1196 ?w }
Francis Cadell
action filter_type
action find
entity Francis Cadell
relation manner of death
type activity
['Francis Cadell', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:activity . resource:Francis_Cadell property:manner_of_death ?w }
[]
activity
Q149086
SYSTEM
homicide
Q149086
(Q2353585,P1196,c(Q1914636))
action filter_type
action find
entity Q2353585
relation P1196
type Q1914636
[ANSWER] best describes with type of death of Francis Cadell
['Q2353585', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1914636 . resource:Q2353585 property:P1196 ?w }
homicide
Homicide best describes with type of death of Francis Cadell
homicide
action filter_type
action find
entity Francis Cadell
relation manner of death
type activity
['Francis Cadell', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:activity . resource:Francis_Cadell property:manner_of_death ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2353585
P1412
Q34770
USER
Which language does Francis Cadell speak in ?
(Q2353585,P1412,c(Q34770))
action filter_type
action find
entity Q2353585
relation P1412
type Q34770
['Q2353585', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q2353585 property:P1412 ?i . ?i rdf:type ontology:Q34770 }
Francis Cadell
action filter_type
action find
entity Francis Cadell
relation languages spoken, written or signed
type language
['Francis Cadell', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Francis_Cadell property:languages_spoken,_written_or_signed ?i . ?i rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2353585,P1412,c(Q34770))
action filter_type
action find
entity Q2353585
relation P1412
type Q34770
Francis Cadell speaks [ANSWER]
['Q2353585', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q2353585 property:P1412 ?i . ?i rdf:type ontology:Q34770 }
English
Francis Cadell speaks English
English
action filter_type
action find
entity Francis Cadell
relation languages spoken, written or signed
type language
['Francis Cadell', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Francis_Cadell property:languages_spoken,_written_or_signed ?i . ?i rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17478131
Q34770
USER
And what about Ignacio Malcorra?
(Q17478131,P1412,c(Q34770))
action filter_type
action find
entity Q17478131
relation P1412
type Q34770
['Q17478131', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q17478131 property:P1412 ?e }
Ignacio Malcorra
action filter_type
action find
entity Ignacio Malcorra
relation languages spoken, written or signed
type language
['Ignacio Malcorra', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:Ignacio_Malcorra property:languages_spoken,_written_or_signed ?e }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q17478131,P1412,c(Q34770))
action filter_type
action find
entity Q17478131
relation P1412
type Q34770
[ANSWER]
['Q17478131', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q17478131 property:P1412 ?e }
Spanish
Spanish
action filter_type
action find
entity Ignacio Malcorra
relation languages spoken, written or signed
type language
['Ignacio Malcorra', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:Ignacio_Malcorra property:languages_spoken,_written_or_signed ?e }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P103
Q34770 Q502895
USER
Which languages are native to lesser number of people than that language ?
(c(Q502895),P103,c(Q34770))
action less
action find_reverse_tuple_counts
relation P103
type Q34770
type Q502895
action count
action filter_type
action find_reverse
entity Q1321
relation P103
type Q502895
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P103 ?t . ?r rdf:type ontology:Q502895 . ?t rdf:type ontology:Q34770 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:P103 resource:Q1321 . ?f rdf:type ontology:Q502895 } } . FILTER ( ?j < ?g ) }
action less
action find_reverse_tuple_counts
relation native language
type language
type common name
action count
action filter_type
action find_reverse
entity Spanish
relation native language
type common name
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:native_language ?t . ?r rdf:type ontology:common_name . ?t rdf:type ontology:language } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:native_language resource:Spanish . ?f rdf:type ontology:common_name } } . FILTER ( ?j < ?g ) }
[]
language common name
Q9056 Q8752 Q397
SYSTEM
Czech, Basque, Latin
Q3200839 Q9056 Q652 Q8752 Q13211 Q397 Q8785 Q25164
(c(Q502895),P103,c(Q34770))
action less
action find_reverse_tuple_counts
relation P103
type Q34770
type Q502895
action count
action filter_type
action find_reverse
entity Q1321
relation P103
type Q502895
[ANSWERS] are native to lesser number of people than that language
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P103 ?t . ?r rdf:type ontology:Q502895 . ?t rdf:type ontology:Q34770 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:P103 resource:Q1321 . ?f rdf:type ontology:Q502895 } } . FILTER ( ?j < ?g ) }
Kwaza language Czech Italian Basque Ruthenian Latin Armenian Nynorsk
Czech, Basque and Latin are native to lesser number of people than that language
Czech Basque Latin
action less
action find_reverse_tuple_counts
relation native language
type language
type common name
action count
action filter_type
action find_reverse
entity Spanish
relation native language
type common name
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:native_language ?t . ?r rdf:type ontology:common_name . ?t rdf:type ontology:language } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:native_language resource:Spanish . ?f rdf:type ontology:common_name } } . FILTER ( ?j < ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1049
P37
Q34770 Q15617994
USER
Which administrative territories are known to have approximately the same number of languages as their official language as Sudan ?
(c(Q15617994),P37,c(Q34770))
action approx
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_type
action find
entity Q1049
relation P37
type Q15617994
[{'concept': 'Q15617994'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?k ) WHERE { ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q34770 . ?s property:P37 ?f } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { resource:Q1049 property:P37 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?k = ?r ) }
Sudan
action approx
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_type
action find
entity Sudan
relation official language
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?k ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:language . ?s property:official_language ?f } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { resource:Sudan property:official_language ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k = ?r ) }
[]
language designation for an administrative territorial entity
Q38 Q55 Q953
SYSTEM
Italy, Netherlands, Zambia
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q1044 Q1042 Q27 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q750 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q34770))
action approx
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_type
action find
entity Q1049
relation P37
type Q15617994
[ANSWERS] are known to have approximately the same number of languages as their official language as Sudan
[{'concept': 'Q15617994'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?k ) WHERE { ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q34770 . ?s property:P37 ?f } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { resource:Q1049 property:P37 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?k = ?r ) }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Sierra Leone Seychelles Ireland Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Bolivia Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
Italy, Netherlands and Zambia are known to have approximately the same number of languages as their official language as Sudan
Italy Netherlands Zambia
action approx
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_type
action find
entity Sudan
relation official language
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?k ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:language . ?s property:official_language ?f } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { resource:Sudan property:official_language ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k = ?r ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1938883
P530
Q1048835
USER
Are Lagoa do Piauí known to have diplomatic connections with those administrative territories ?
(Q1938883,P530,Q38) (Q1938883,P530,Q55) (Q1938883,P530,Q953)
action is_in
entity prev_answer
action find
entity Q1938883
relation P530
['Q1938883', 'P530', 'Q38'] ['Q1938883', 'P530', 'Q55'] ['Q1938883', 'P530', 'Q953']
ASK WHERE { VALUES ( ?q ) { ( resource:Q804 ) ( resource:Q399 ) ( resource:Q800 ) } . resource:Q1938883 property:P530 ?q }
Lagoa do Piauí
action is_in
entity prev_answer
action find
entity Lagoa do Piauí
relation diplomatic relation
['Lagoa do Piauí', 'diplomatic relation', 'Italy'] ['Lagoa do Piauí', 'diplomatic relation', 'Netherlands'] ['Lagoa do Piauí', 'diplomatic relation', 'Zambia']
ASK WHERE { VALUES ( ?q ) { ( resource:Panama ) ( resource:Armenia ) ( resource:Costa_Rica ) } . resource:Lagoa_do_Piauí property:diplomatic_relation ?q }
[]
political territorial entity
SYSTEM
NO
(Q1938883,P530,Q38) (Q1938883,P530,Q55) (Q1938883,P530,Q953)
action is_in
entity prev_answer
action find
entity Q1938883
relation P530
[ANSWER]
['Q1938883', 'P530', 'Q38'] ['Q1938883', 'P530', 'Q55'] ['Q1938883', 'P530', 'Q953']
ASK WHERE { VALUES ( ?q ) { ( resource:Q804 ) ( resource:Q399 ) ( resource:Q800 ) } . resource:Q1938883 property:P530 ?q }
No
action is_in
entity prev_answer
action find
entity Lagoa do Piauí
relation diplomatic relation
['Lagoa do Piauí', 'diplomatic relation', 'Italy'] ['Lagoa do Piauí', 'diplomatic relation', 'Netherlands'] ['Lagoa do Piauí', 'diplomatic relation', 'Zambia']
ASK WHERE { VALUES ( ?q ) { ( resource:Panama ) ( resource:Armenia ) ( resource:Costa_Rica ) } . resource:Lagoa_do_Piauí property:diplomatic_relation ?q }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q570408 Q212
P530
Q15617994
USER
Is Italy known to have diplomatic connections with Dahn and Ukraine ?
(Q38,P530,Q570408) (Q38,P530,Q212)
action is_in
entity Q38
action intersection
action find_reverse
entity Q570408
relation P530
action find_reverse
entity Q212
relation P530
['Q38', 'P530', 'Q570408'] ['Q38', 'P530', 'Q212']
ASK WHERE { resource:Q38 property:P530 resource:Q570408 . resource:Q38 property:P530 resource:Q212 }
Italy Dahn Ukraine
action is_in
entity Italy
action intersection
action find_reverse
entity Dahn
relation diplomatic relation
action find_reverse
entity Ukraine
relation diplomatic relation
['Italy', 'diplomatic relation', 'Dahn'] ['Italy', 'diplomatic relation', 'Ukraine']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Dahn . resource:Italy property:diplomatic_relation resource:Ukraine }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q38,P530,Q570408) (Q38,P530,Q212)
action is_in
entity Q38
action intersection
action find_reverse
entity Q570408
relation P530
action find_reverse
entity Q212
relation P530
[ANSWER]
['Q38', 'P530', 'Q570408'] ['Q38', 'P530', 'Q212']
ASK WHERE { resource:Q38 property:P530 resource:Q570408 . resource:Q38 property:P530 resource:Q212 }
NO and YES respectively
action is_in
entity Italy
action intersection
action find_reverse
entity Dahn
relation diplomatic relation
action find_reverse
entity Ukraine
relation diplomatic relation
['Italy', 'diplomatic relation', 'Dahn'] ['Italy', 'diplomatic relation', 'Ukraine']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Dahn . resource:Italy property:diplomatic_relation resource:Ukraine }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q9056 Q145852
P361
Q5962346
USER
Is Czech a portion of West Slavic languages ?
(Q9056,P361,Q145852)
action is_in
entity Q145852
action find
entity Q9056
relation P361
['Q9056', 'P361', 'Q145852']
ASK WHERE { resource:Q9056 property:P361 resource:Q145852 }
Czech West Slavic languages
action is_in
entity West Slavic languages
action find
entity Czech
relation part of
['Czech', 'part of', 'West Slavic languages']
ASK WHERE { resource:Czech property:part_of resource:West_Slavic_languages }
[]
classification scheme
SYSTEM
YES
(Q9056,P361,Q145852)
action is_in
entity Q145852
action find
entity Q9056
relation P361
[ANSWER]
['Q9056', 'P361', 'Q145852']
ASK WHERE { resource:Q9056 property:P361 resource:Q145852 }
Yes
action is_in
entity West Slavic languages
action find
entity Czech
relation part of
['Czech', 'part of', 'West Slavic languages']
ASK WHERE { resource:Czech property:part_of resource:West_Slavic_languages }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q953 Q16
P530
Q1048835
USER
Does Canada have diplomatic relations with Zambia ?
(Q953,P530,Q16)
action is_in
entity Q16
action find
entity Q953
relation P530
['Q953', 'P530', 'Q16']
ASK WHERE { resource:Q953 property:P530 resource:Q16 }
Zambia Canada
action is_in
entity Canada
action find
entity Zambia
relation diplomatic relation
['Zambia', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Zambia property:diplomatic_relation resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q953,P530,Q16)
action is_in
entity Q16
action find
entity Q953
relation P530
[ANSWER]
['Q953', 'P530', 'Q16']
ASK WHERE { resource:Q953 property:P530 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Zambia
relation diplomatic relation
['Zambia', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Zambia property:diplomatic_relation resource:Canada }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P364
Q34770 Q2342494 Q201658
USER
How many languages are the original languages of creation of atleast 324 collectables or film genres ?
(c(Q2342494)|c(Q201658),P364,c(Q34770))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q2342494
action find_reverse_tuple_counts
relation P364
type Q34770
type Q201658
value 324
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?q ) WHERE { VALUES ( ?n ) { ( ontology:Q2342494 ) ( ontology:Q201658 ) } . ?z rdf:type ?n } GROUP BY ?b } . FILTER ( ?q >= 324 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation original language of work
type language
type collectable
action find_reverse_tuple_counts
relation original language of work
type language
type film genre
value 324
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?q ) WHERE { VALUES ( ?n ) { ( ontology:collectable ) ( ontology:film_genre ) } . ?z rdf:type ?n } GROUP BY ?b } . FILTER ( ?q >= 324 ) }
[]
language collectable film genre
SYSTEM
3
Q1860 Q1321 Q652
(c(Q2342494)|c(Q201658),P364,c(Q34770))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q2342494
action find_reverse_tuple_counts
relation P364
type Q34770
type Q201658
value 324
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?q ) WHERE { VALUES ( ?n ) { ( ontology:Q2342494 ) ( ontology:Q201658 ) } . ?z rdf:type ?n } GROUP BY ?b } . FILTER ( ?q >= 324 ) }
English Spanish Italian
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation original language of work
type language
type collectable
action find_reverse_tuple_counts
relation original language of work
type language
type film genre
value 324
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?q ) WHERE { VALUES ( ?n ) { ( ontology:collectable ) ( ontology:film_genre ) } . ?z rdf:type ?n } GROUP BY ?b } . FILTER ( ?q >= 324 ) }
[]