Simple Question (Direct)
Simple Question
Q6519454
P509
Q2057971
USER
What was the cause of death of Leif Pettersen ?
(Q6519454,P509,c(Q2057971))
action filter_type
action find
entity Q6519454
relation P509
type Q2057971
['Q6519454', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?w WHERE { resource:Q6519454 property:P509 ?w . ?w rdf:type ontology:Q2057971 }
Leif Pettersen
action filter_type
action find
entity Leif Pettersen
relation cause of death
type health problem
['Leif Pettersen', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?w WHERE { resource:Leif_Pettersen property:cause_of_death ?w . ?w rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q6519454,P509,c(Q2057971))
action filter_type
action find
entity Q6519454
relation P509
type Q2057971
The cause of death of Leif Pettersen was a [ANSWER]
['Q6519454', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?w WHERE { resource:Q6519454 property:P509 ?w . ?w rdf:type ontology:Q2057971 }
myocardial infarction
The cause of death of Leif Pettersen was a myocardial infarction
myocardial infarction
action filter_type
action find
entity Leif Pettersen
relation cause of death
type health problem
['Leif Pettersen', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?w WHERE { resource:Leif_Pettersen property:cause_of_death ?w . ?w rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6519454
P21
Q290
USER
Which sex does Leif Pettersen have ?
(Q6519454,P21,c(Q290))
action filter_type
action find
entity Q6519454
relation P21
type Q290
['Q6519454', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q290 . resource:Q6519454 property:P21 ?k }
Leif Pettersen
action filter_type
action find
entity Leif Pettersen
relation gender
type sex
['Leif Pettersen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sex . resource:Leif_Pettersen property:gender ?k }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6519454,P21,c(Q290))
action filter_type
action find
entity Q6519454
relation P21
type Q290
Leif Pettersen has a [ANSWER]
['Q6519454', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q290 . resource:Q6519454 property:P21 ?k }
male
Leif Pettersen has a male
male
action filter_type
action find
entity Leif Pettersen
relation gender
type sex
['Leif Pettersen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sex . resource:Leif_Pettersen property:gender ?k }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7329543
Q290
USER
And also tell me about Richard Treadway?
(Q7329543,P21,c(Q290))
action filter_type
action find
entity Q7329543
relation P21
type Q290
['Q7329543', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q7329543 property:P21 ?q . ?q rdf:type ontology:Q290 }
Richard Treadway
action filter_type
action find
entity Richard Treadway
relation gender
type sex
['Richard Treadway', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Richard_Treadway property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7329543,P21,c(Q290))
action filter_type
action find
entity Q7329543
relation P21
type Q290
[ANSWER]
['Q7329543', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q7329543 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Richard Treadway
relation gender
type sex
['Richard Treadway', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Richard_Treadway property:gender ?q . ?q rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18215235 Q7329543
P27
Q15617994
USER
Which administrative territories do Richard Treadway or Paul Manaut belong to ?
OR((Q7329543,P27,c(Q15617994)), (Q18215235,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7329543
relation P27
action find
entity Q18215235
relation P27
type Q15617994
{'OR': [['Q7329543', 'P27', {'concept': 'Q15617994'}], ['Q18215235', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { VALUES ( ?o ) { ( resource:Q7329543 ) ( resource:Q18215235 ) } . ?o property:P27 ?m } }
Paul Manaut Richard Treadway
action filter_type
action union
action find
entity Richard Treadway
relation country of citizenship
action find
entity Paul Manaut
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Richard Treadway', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Paul Manaut', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?o ) { ( resource:Richard_Treadway ) ( resource:Paul_Manaut ) } . ?o property:country_of_citizenship ?m } }
[]
designation for an administrative territorial entity
Q142 Q30
SYSTEM
France, United States of America
Q142 Q30
OR((Q7329543,P27,c(Q15617994)), (Q18215235,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7329543
relation P27
action find
entity Q18215235
relation P27
type Q15617994
Richard Treadway or Paul Manaut belong to the [ANSWERS]
{'OR': [['Q7329543', 'P27', {'concept': 'Q15617994'}], ['Q18215235', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { VALUES ( ?o ) { ( resource:Q7329543 ) ( resource:Q18215235 ) } . ?o property:P27 ?m } }
France United States of America
Richard Treadway or Paul Manaut belong to the France and United States of America
France United States of America
action filter_type
action union
action find
entity Richard Treadway
relation country of citizenship
action find
entity Paul Manaut
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Richard Treadway', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Paul Manaut', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?o ) { ( resource:Richard_Treadway ) ( resource:Paul_Manaut ) } . ?o property:country_of_citizenship ?m } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q35
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with less number of administrative territories than Denmark ?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?n rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 . ?n property:P530 ?d } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { resource:Q35 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } . FILTER ( ?x < ?k ) }
Denmark
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?n rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:diplomatic_relation ?d } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { resource:Denmark property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } . FILTER ( ?x < ?k ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
8
Q1000 Q781 Q778 Q769 Q685 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?n rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 . ?n property:P530 ?d } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { resource:Q35 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } . FILTER ( ?x < ?k ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea New Zealand Jamaica
8
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?x ) WHERE { ?n rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:diplomatic_relation ?d } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { resource:Denmark property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } . FILTER ( ?x < ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q766
P530
Q1048835 Q15617994
USER
And what about Jamaica?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?d ) WHERE { ?b property:P530 ?h . ?b rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Q766 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?d < ?z ) }
Jamaica
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?d ) WHERE { ?b property:diplomatic_relation ?h . ?b rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Jamaica property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?d < ?z ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
6
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?d ) WHERE { ?b property:P530 ?h . ?b rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Q766 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?d < ?z ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
6
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?d ) WHERE { ?b property:diplomatic_relation ?h . ?b rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Jamaica property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?d < ?z ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P84
Q811430
USER
What was France an architect of ?
(c(Q811430),P84,Q142)
action filter_type
action find_reverse
entity Q142
relation P84
type Q811430
[{'concept': 'Q811430'}, 'P84', 'Q142']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q811430 . ?u property:P84 resource:Q142 }
France
action filter_type
action find_reverse
entity France
relation architect
type construction
[{'concept': 'construction'}, 'architect', 'France']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:construction . ?u property:architect resource:France }
[]
construction
Q4740023
SYSTEM
Amar Mahal Palace
Q4740023
(c(Q811430),P84,Q142)
action filter_type
action find_reverse
entity Q142
relation P84
type Q811430
France was an architect for [ANSWER]
[{'concept': 'Q811430'}, 'P84', 'Q142']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q811430 . ?u property:P84 resource:Q142 }
Amar Mahal Palace
France was an architect for Amar Mahal Palace
Amar Mahal Palace
action filter_type
action find_reverse
entity France
relation architect
type construction
[{'concept': 'construction'}, 'architect', 'France']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:construction . ?u property:architect resource:France }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P35
Q502895
USER
Who are the chiefs of state of France ?
(Q142,P35,c(Q502895))
action filter_type
action find
entity Q142
relation P35
type Q502895
['Q142', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q142 property:P35 ?p . ?p rdf:type ontology:Q502895 }
France
action filter_type
action find
entity France
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:France property:head_of_state ?p . ?p rdf:type ontology:common_name }
[]
common name
Q2105 Q2042 Q2038
SYSTEM
Jacques Chirac, Charles de Gaulle, François Mitterrand
Q2105 Q2038 Q157 Q329 Q2042 Q12950 Q2185 Q2124
(Q142,P35,c(Q502895))
action filter_type
action find
entity Q142
relation P35
type Q502895
The chiefs of state of France are [ANSWERS]
['Q142', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q142 property:P35 ?p . ?p rdf:type ontology:Q502895 }
Jacques Chirac François Mitterrand François Hollande Nicolas Sarkozy Charles de Gaulle Alain Poher Georges Pompidou Valéry Giscard d'Estaing
The chiefs of state of France are Jacques Chirac, Charles de Gaulle and François Mitterrand
Jacques Chirac Charles de Gaulle François Mitterrand
action filter_type
action find
entity France
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:France property:head_of_state ?p . ?p rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q166142
USER
How many applications have been dubbed by atleast 42 people ?
(c(Q166142),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q166142
type Q502895
value 42
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?b ) WHERE { ?m property:P725 ?h . ?h rdf:type ontology:Q502895 . ?m rdf:type ontology:Q166142 } GROUP BY ?m } . FILTER ( ?b >= 42 ) }
action count
action atleast
action find_tuple_counts
relation voice actor
type application
type common name
value 42
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?b ) WHERE { ?m property:voice_actor ?h . ?h rdf:type ontology:common_name . ?m rdf:type ontology:application } GROUP BY ?m } . FILTER ( ?b >= 42 ) }
[]
common name application
SYSTEM
1
Q843131
(c(Q166142),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q166142
type Q502895
value 42
[ANSWER]
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?b ) WHERE { ?m property:P725 ?h . ?h rdf:type ontology:Q502895 . ?m rdf:type ontology:Q166142 } GROUP BY ?m } . FILTER ( ?b >= 42 ) }
Super Smash Bros. Brawl
1
action count
action atleast
action find_tuple_counts
relation voice actor
type application
type common name
value 42
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?b ) WHERE { ?m property:voice_actor ?h . ?h rdf:type ontology:common_name . ?m rdf:type ontology:application } GROUP BY ?m } . FILTER ( ?b >= 42 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3384916 Q2038
P166
Q618779
USER
Which awards were François Mitterrand and Robert Busnel awarded with ?
AND((Q2038,P166,c(Q618779)), (Q3384916,P166,c(Q618779)))
action filter_type
action intersection
action find
entity Q2038
relation P166
action find
entity Q3384916
relation P166
type Q618779
{'AND': [['Q2038', 'P166', {'concept': 'Q618779'}], ['Q3384916', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?s WHERE { resource:Q2038 property:P166 ?s . resource:Q3384916 property:P166 ?s . ?s rdf:type ontology:Q618779 }
Robert Busnel François Mitterrand
action filter_type
action intersection
action find
entity François Mitterrand
relation award received
action find
entity Robert Busnel
relation award received
type award
{'AND': [['François Mitterrand', 'award received', {'concept': 'award'}], ['Robert Busnel', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?s WHERE { resource:François_Mitterrand property:award_received ?s . resource:Robert_Busnel property:award_received ?s . ?s rdf:type ontology:award }
[]
award
Q2547676
SYSTEM
Croix de guerre 1939–1945
Q2547676
AND((Q2038,P166,c(Q618779)), (Q3384916,P166,c(Q618779)))
action filter_type
action intersection
action find
entity Q2038
relation P166
action find
entity Q3384916
relation P166
type Q618779
François Mitterrand and Robert Busnel were awarded the [ANSWER]
{'AND': [['Q2038', 'P166', {'concept': 'Q618779'}], ['Q3384916', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?s WHERE { resource:Q2038 property:P166 ?s . resource:Q3384916 property:P166 ?s . ?s rdf:type ontology:Q618779 }
Croix de guerre 1939–1945
François Mitterrand and Robert Busnel were awarded the Croix de guerre 1939–1945
Croix de guerre 1939–1945
action filter_type
action intersection
action find
entity François Mitterrand
relation award received
action find
entity Robert Busnel
relation award received
type award
{'AND': [['François Mitterrand', 'award received', {'concept': 'award'}], ['Robert Busnel', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?s WHERE { resource:François_Mitterrand property:award_received ?s . resource:Robert_Busnel property:award_received ?s . ?s rdf:type ontology:award }
[]