Simple Question (Direct)
Simple Question
Q855673
P58
Q502895
USER
Who served as the screenwriter for Pride and Prejudice ?
(Q855673,P58,c(Q502895))
action filter_type
action find
entity Q855673
relation P58
type Q502895
['Q855673', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q855673 property:P58 ?x . ?x rdf:type ontology:Q502895 }
Pride and Prejudice
action filter_type
action find
entity Pride and Prejudice
relation screenwriter
type common name
['Pride and Prejudice', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Pride_and_Prejudice property:screenwriter ?x . ?x rdf:type ontology:common_name }
[]
common name
Q504430
SYSTEM
Andrew Davies
Q504430
(Q855673,P58,c(Q502895))
action filter_type
action find
entity Q855673
relation P58
type Q502895
[ANSWER] served as the screenwriter for Pride and Prejudice
['Q855673', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q855673 property:P58 ?x . ?x rdf:type ontology:Q502895 }
Andrew Davies
Andrew Davies served as the screenwriter for Pride and Prejudice
Andrew Davies
action filter_type
action find
entity Pride and Prejudice
relation screenwriter
type common name
['Pride and Prejudice', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Pride_and_Prejudice property:screenwriter ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q855673
P86
Q502895
USER
Who was Pride and Prejudice composed by ?
(Q855673,P86,c(Q502895))
action filter_type
action find
entity Q855673
relation P86
type Q502895
['Q855673', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q855673 property:P86 ?b . ?b rdf:type ontology:Q502895 }
Pride and Prejudice
action filter_type
action find
entity Pride and Prejudice
relation composer
type common name
['Pride and Prejudice', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Pride_and_Prejudice property:composer ?b . ?b rdf:type ontology:common_name }
[]
common name
Q584221
SYSTEM
Carl Davis
Q584221
(Q855673,P86,c(Q502895))
action filter_type
action find
entity Q855673
relation P86
type Q502895
[ANSWER] by Pride and Prejudice was composed
['Q855673', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q855673 property:P86 ?b . ?b rdf:type ontology:Q502895 }
Carl Davis
Carl Davis by Pride and Prejudice was composed
Carl Davis
action filter_type
action find
entity Pride and Prejudice
relation composer
type common name
['Pride and Prejudice', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Pride_and_Prejudice property:composer ?b . ?b rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q584221 Q138473
P27
Q15617994
USER
Is Arco the native country of that person ?
(Q584221,P27,Q138473)
action is_in
entity Q138473
action find
entity Q584221
relation P27
['Q584221', 'P27', 'Q138473']
ASK WHERE { resource:Q584221 property:P27 resource:Q138473 }
Carl Davis Arco
action is_in
entity Arco
action find
entity Carl Davis
relation country of citizenship
['Carl Davis', 'country of citizenship', 'Arco']
ASK WHERE { resource:Carl_Davis property:country_of_citizenship resource:Arco }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q584221,P27,Q138473)
action is_in
entity Q138473
action find
entity Q584221
relation P27
[ANSWER]
['Q584221', 'P27', 'Q138473']
ASK WHERE { resource:Q584221 property:P27 resource:Q138473 }
No
action is_in
entity Arco
action find
entity Carl Davis
relation country of citizenship
['Carl Davis', 'country of citizenship', 'Arco']
ASK WHERE { resource:Carl_Davis property:country_of_citizenship resource:Arco }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q855673 Q4587930
P161
Q502895
USER
Was Kristian Kvakland casted in Pride and Prejudice ?
(Q855673,P161,Q4587930)
action is_in
entity Q4587930
action find
entity Q855673
relation P161
['Q855673', 'P161', 'Q4587930']
ASK WHERE { resource:Q855673 property:P161 resource:Q4587930 }
Pride and Prejudice Kristian Kvakland
action is_in
entity Kristian Kvakland
action find
entity Pride and Prejudice
relation cast member
['Pride and Prejudice', 'cast member', 'Kristian Kvakland']
ASK WHERE { resource:Pride_and_Prejudice property:cast_member resource:Kristian_Kvakland }
[]
common name
SYSTEM
NO
(Q855673,P161,Q4587930)
action is_in
entity Q4587930
action find
entity Q855673
relation P161
[ANSWER]
['Q855673', 'P161', 'Q4587930']
ASK WHERE { resource:Q855673 property:P161 resource:Q4587930 }
No
action is_in
entity Kristian Kvakland
action find
entity Pride and Prejudice
relation cast member
['Pride and Prejudice', 'cast member', 'Kristian Kvakland']
ASK WHERE { resource:Pride_and_Prejudice property:cast_member resource:Kristian_Kvakland }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4778169 Q4587930
P27 P495
Q15617994
USER
Which administrative territories are the native countriesof Kristian Kvakland or did Any Other Side originate ?
OR((Q4587930,P27,c(Q15617994)), (Q4778169,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q4587930
relation P27
action find
entity Q4778169
relation P495
type Q15617994
{'OR': [['Q4587930', 'P27', {'concept': 'Q15617994'}], ['Q4778169', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q4587930 property:P27 ?c } UNION { resource:Q4778169 property:P495 ?c } } }
Any Other Side Kristian Kvakland
action filter_type
action union
action find
entity Kristian Kvakland
relation country of citizenship
action find
entity Any Other Side
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Kristian Kvakland', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Any Other Side', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Kristian_Kvakland property:country_of_citizenship ?c } UNION { resource:Any_Other_Side property:country_of_origin ?c } } }
[]
designation for an administrative territorial entity
Q20 Q148
SYSTEM
Norway, People's Republic of China
Q20 Q148
OR((Q4587930,P27,c(Q15617994)), (Q4778169,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q4587930
relation P27
action find
entity Q4778169
relation P495
type Q15617994
[ANSWERS] are the native countriesof Kristian Kvakland or did Any Other Side originate
{'OR': [['Q4587930', 'P27', {'concept': 'Q15617994'}], ['Q4778169', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q4587930 property:P27 ?c } UNION { resource:Q4778169 property:P495 ?c } } }
Norway People's Republic of China
Norway and People's Republic of China are the native countriesof Kristian Kvakland or did Any Other Side originate
Norway People's Republic of China
action filter_type
action union
action find
entity Kristian Kvakland
relation country of citizenship
action find
entity Any Other Side
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Kristian Kvakland', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Any Other Side', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Kristian_Kvakland property:country_of_citizenship ?c } UNION { resource:Any_Other_Side property:country_of_origin ?c } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have a diplomatic relationship with atmost 117 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 117
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?k ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?k <= 117 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 117
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?k ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?k <= 117 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
12
Q1000 Q40 Q781 Q778 Q408 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 117
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?k ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?k <= 117 ) }
Gabon Austria Antigua and Barbuda The Bahamas Australia Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
12
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 117
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?k ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?k <= 117 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q148
P610
Q14524493
USER
Which is the highest peak of People's Republic of China ?
(Q148,P610,c(Q14524493))
action filter_type
action find
entity Q148
relation P610
type Q14524493
['Q148', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?w WHERE { resource:Q148 property:P610 ?w . ?w rdf:type ontology:Q14524493 }
People's Republic of China
action filter_type
action find
entity People's Republic of China
relation highest point
type terrain
["People's Republic of China", 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?w WHERE { resource:People's_Republic_of_China property:highest_point ?w . ?w rdf:type ontology:terrain }
[]
terrain
Q513
SYSTEM
Mount Everest
Q513
(Q148,P610,c(Q14524493))
action filter_type
action find
entity Q148
relation P610
type Q14524493
The highest peak of People's Republic of China is the [ANSWER]
['Q148', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?w WHERE { resource:Q148 property:P610 ?w . ?w rdf:type ontology:Q14524493 }
Mount Everest
The highest peak of People's Republic of China is the Mount Everest
Mount Everest
action filter_type
action find
entity People's Republic of China
relation highest point
type terrain
["People's Republic of China", 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?w WHERE { resource:People's_Republic_of_China property:highest_point ?w . ?w rdf:type ontology:terrain }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q921
Q14524493
USER
And also tell me about Brunei?
(Q921,P610,c(Q14524493))
action filter_type
action find
entity Q921
relation P610
type Q14524493
['Q921', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?u WHERE { resource:Q921 property:P610 ?u . ?u rdf:type ontology:Q14524493 }
Brunei
action filter_type
action find
entity Brunei
relation highest point
type terrain
['Brunei', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?u WHERE { resource:Brunei property:highest_point ?u . ?u rdf:type ontology:terrain }
[]
terrain
Q1003282
SYSTEM
Bukit Pagon
Q1003282
(Q921,P610,c(Q14524493))
action filter_type
action find
entity Q921
relation P610
type Q14524493
[ANSWER]
['Q921', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?u WHERE { resource:Q921 property:P610 ?u . ?u rdf:type ontology:Q14524493 }
Bukit Pagon
Bukit Pagon
action filter_type
action find
entity Brunei
relation highest point
type terrain
['Brunei', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?u WHERE { resource:Brunei property:highest_point ?u . ?u rdf:type ontology:terrain }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q513
P17
Q15617994
USER
How many administrative territories are Mount Everest situated in ?
(Q513,P17,c(Q15617994))
action count
action filter_type
action find
entity Q513
relation P17
type Q15617994
['Q513', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c rdf:type ontology:Q15617994 . resource:Q513 property:P17 ?c }
Mount Everest
action count
action filter_type
action find
entity Mount Everest
relation country
type designation for an administrative territorial entity
['Mount Everest', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mount_Everest property:country ?c }
[]
designation for an administrative territorial entity
SYSTEM
2
Q148 Q837
(Q513,P17,c(Q15617994))
action count
action filter_type
action find
entity Q513
relation P17
type Q15617994
[ANSWER]
['Q513', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c rdf:type ontology:Q15617994 . resource:Q513 property:P17 ?c }
People's Republic of China Nepal
2
action count
action filter_type
action find
entity Mount Everest
relation country
type designation for an administrative territorial entity
['Mount Everest', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mount_Everest property:country ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q513
P138
Q502895
USER
Which person is the etymology of that terrain ?
action filter_type
action find
entity Q513
relation P138
type Q502895
SELECT DISTINCT ?h WHERE { resource:Q513 property:P138 ?h . ?h rdf:type ontology:Q502895 }
Mount Everest
action filter_type
action find
entity Mount Everest
relation named after
type common name
SELECT DISTINCT ?h WHERE { resource:Mount_Everest property:named_after ?h . ?h rdf:type ontology:common_name }
[]
common name
Q217119
SYSTEM
George Everest
Q217119
action filter_type
action find
entity Q513
relation P138
type Q502895
[ANSWER] is the etymology of that terrain
SELECT DISTINCT ?h WHERE { resource:Q513 property:P138 ?h . ?h rdf:type ontology:Q502895 }
George Everest
George Everest is the etymology of that terrain
George Everest
action filter_type
action find
entity Mount Everest
relation named after
type common name
SELECT DISTINCT ?h WHERE { resource:Mount_Everest property:named_after ?h . ?h rdf:type ontology:common_name }
[]