Simple Question (Direct)
Simple Question
Q3420099
P22
Q502895
USER
Who was the father of Birger Jåstad ?
(Q3420099,P22,c(Q502895))
action filter_type
action find
entity Q3420099
relation P22
type Q502895
['Q3420099', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3420099 property:P22 ?h . ?h rdf:type ontology:Q502895 }
Birger Jåstad
action filter_type
action find
entity Birger Jåstad
relation father
type common name
['Birger Jåstad', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Birger_Jåstad property:father ?h . ?h rdf:type ontology:common_name }
[]
common name
Q11983292
SYSTEM
Lars Jåstad
Q11983292
(Q3420099,P22,c(Q502895))
action filter_type
action find
entity Q3420099
relation P22
type Q502895
The father of Birger Jåstad was born [ANSWER]
['Q3420099', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3420099 property:P22 ?h . ?h rdf:type ontology:Q502895 }
Lars Jåstad
The father of Birger Jåstad was born Lars Jåstad
Lars Jåstad
action filter_type
action find
entity Birger Jåstad
relation father
type common name
['Birger Jåstad', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Birger_Jåstad property:father ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3420099
P40
Q502895
USER
Which person has Birger Jåstad as an offspring ?
(c(Q502895),P40,Q3420099)
action filter_type
action find_reverse
entity Q3420099
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q3420099']
SELECT DISTINCT ?y WHERE { ?y property:P40 resource:Q3420099 . ?y rdf:type ontology:Q502895 }
Birger Jåstad
action filter_type
action find_reverse
entity Birger Jåstad
relation child
type common name
[{'concept': 'common name'}, 'child', 'Birger Jåstad']
SELECT DISTINCT ?y WHERE { ?y property:child resource:Birger_Jåstad . ?y rdf:type ontology:common_name }
[]
common name
Q11983292
SYSTEM
Lars Jåstad
Q11983292
(c(Q502895),P40,Q3420099)
action filter_type
action find_reverse
entity Q3420099
relation P40
type Q502895
[ANSWER] has Birger Jåstad as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q3420099']
SELECT DISTINCT ?y WHERE { ?y property:P40 resource:Q3420099 . ?y rdf:type ontology:Q502895 }
Lars Jåstad
Lars Jåstad has Birger Jåstad as an offspring
Lars Jåstad
action filter_type
action find_reverse
entity Birger Jåstad
relation child
type common name
[{'concept': 'common name'}, 'child', 'Birger Jåstad']
SELECT DISTINCT ?y WHERE { ?y property:child resource:Birger_Jåstad . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3420099
P39
Q12737077
USER
Which occupation was a position occupied by Birger Jåstad ?
(Q3420099,P39,c(Q12737077))
action filter_type
action find
entity Q3420099
relation P39
type Q12737077
['Q3420099', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q3420099 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Birger Jåstad
action filter_type
action find
entity Birger Jåstad
relation position held
type occupation
['Birger Jåstad', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Birger_Jåstad property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q3420099,P39,c(Q12737077))
action filter_type
action find
entity Q3420099
relation P39
type Q12737077
The [ANSWER] was a position occupied by Birger Jåstad
['Q3420099', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q3420099 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
mayor
The mayor was a position occupied by Birger Jåstad
mayor
action filter_type
action find
entity Birger Jåstad
relation position held
type occupation
['Birger Jåstad', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Birger_Jåstad property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3420099
P21
Q290
USER
Which sex does that person possess ?
(Q30185,P21,c(Q290))
action filter_type
action find
entity Q3420099
relation P21
type Q290
['Q30185', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q3420099 property:P21 ?e }
Birger Jåstad
action filter_type
action find
entity Birger Jåstad
relation gender
type sex
['mayor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Birger_Jåstad property:gender ?e }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q30185,P21,c(Q290))
action filter_type
action find
entity Q3420099
relation P21
type Q290
That person possesses a [ANSWER]
['Q30185', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q3420099 property:P21 ?e }
male
That person possesses a male
male
action filter_type
action find
entity Birger Jåstad
relation gender
type sex
['mayor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Birger_Jåstad property:gender ?e }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7764209 Q11983292
P161 P40
Q502895
USER
Which people are an offsprings of Lars Jåstad or were casted in The Silent Command ?
OR((Q11983292,P40,c(Q502895)), (Q7764209,P161,c(Q502895)))
action filter_type
action union
action find
entity Q11983292
relation P40
action find
entity Q7764209
relation P161
type Q502895
{'OR': [['Q11983292', 'P40', {'concept': 'Q502895'}], ['Q7764209', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q11983292 property:P40 ?j } UNION { resource:Q7764209 property:P161 ?j } } . ?j rdf:type ontology:Q502895 }
The Silent Command Lars Jåstad
action filter_type
action union
action find
entity Lars Jåstad
relation child
action find
entity The Silent Command
relation cast member
type common name
{'OR': [['Lars Jåstad', 'child', {'concept': 'common name'}], ['The Silent Command', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Lars_Jåstad property:child ?j } UNION { resource:The_Silent_Command property:cast_member ?j } } . ?j rdf:type ontology:common_name }
[]
common name
Q3420099 Q952690 Q34529
SYSTEM
Birger Jåstad, Edmund Lowe, Bela Lugosi
Q3420099 Q952690 Q34529
OR((Q11983292,P40,c(Q502895)), (Q7764209,P161,c(Q502895)))
action filter_type
action union
action find
entity Q11983292
relation P40
action find
entity Q7764209
relation P161
type Q502895
[ANSWERS] are an offsprings of Lars Jåstad or were casted in The Silent Command
{'OR': [['Q11983292', 'P40', {'concept': 'Q502895'}], ['Q7764209', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q11983292 property:P40 ?j } UNION { resource:Q7764209 property:P161 ?j } } . ?j rdf:type ontology:Q502895 }
Birger Jåstad Edmund Lowe Bela Lugosi
Birger Jåstad, Edmund Lowe and Bela Lugosi are an offsprings of Lars Jåstad or were casted in The Silent Command
Birger Jåstad Edmund Lowe Bela Lugosi
action filter_type
action union
action find
entity Lars Jåstad
relation child
action find
entity The Silent Command
relation cast member
type common name
{'OR': [['Lars Jåstad', 'child', {'concept': 'common name'}], ['The Silent Command', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Lars_Jåstad property:child ?j } UNION { resource:The_Silent_Command property:cast_member ?j } } . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can min number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?e ) WHERE { ?v property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?n } } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?w } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?e ) WHERE { ?v property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?n } } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?w } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Min number of people can perform the [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?e ) WHERE { ?v property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?n } } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?w } }
spoon cajón wind instrument
Min number of people can perform the spoon, cajón and wind instrument
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?e ) WHERE { ?v property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?n } } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q145 Q952690
P161 P495
Q838948
USER
Which works of art have Edmund Lowe in their star cast and do n't have United Kingdom as their origination points ?
AND((c(Q838948),P161,Q952690), NOT((c(Q838948),P495,Q145)))
action filter_type
action difference
action find_reverse
entity Q952690
relation P161
action find_reverse
entity Q145
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q952690'], {'NOT': [[{'concept': 'Q838948'}, 'P495', 'Q145']]}]}
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q952690 . FILTER NOT EXISTS { ?o property:P495 resource:Q145 } . ?o rdf:type ontology:Q838948 }
United Kingdom Edmund Lowe
action filter_type
action difference
action find_reverse
entity Edmund Lowe
relation cast member
action find_reverse
entity United Kingdom
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Edmund Lowe'], {'NOT': [[{'concept': 'work of art'}, 'country of origin', 'United Kingdom']]}]}
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Edmund_Lowe . FILTER NOT EXISTS { ?o property:country_of_origin resource:United_Kingdom } . ?o rdf:type ontology:work_of_art }
[]
work of art
Q18636640 Q3742374 Q776337 Q21528243 Q19363640 Q22000570 Q2707270 Q16029063 Q21869421 Q20715310
SYSTEM
Some of them are Under Cover of Night, The Bad One, In Old Arizona, The Wizard, I Love That Man, Klondike Fury, Born Reckless, Women of All Nations, Honor Among Men, Black Sheep
Q21527947 Q722648 Q22000570 Q1185095 Q7786283 Q12061142 Q5021584 Q21869421 Q16029063 Q20715310 Q6875825 Q278127 Q18636435 Q21527687 Q1672976 Q7737803 Q7730017 Q18636472 Q2870146 Q2061796 Q19363706 Q776337 Q7731999 Q7764209 Q2348773 Q21527580 Q23796986 Q7080390 Q21869729 Q16679996 Q3742374 Q19878536 Q3027987 Q2592150 Q19363611 Q18636640 Q19363640 Q20649166 Q21528065 Q21999943 Q2707270 Q5560030 Q16250644 Q2943549 Q5910215 Q23797178 Q3822665 Q16946240 Q21528244 Q21528243 Q739708 Q2409342
AND((c(Q838948),P161,Q952690), NOT((c(Q838948),P495,Q145)))
action filter_type
action difference
action find_reverse
entity Q952690
relation P161
action find_reverse
entity Q145
relation P495
type Q838948
[ANSWERS] have Edmund Lowe in their star cast and do n't have United Kingdom as their origination points
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q952690'], {'NOT': [[{'concept': 'Q838948'}, 'P495', 'Q145']]}]}
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q952690 . FILTER NOT EXISTS { ?o property:P495 resource:Q145 } . ?o rdf:type ontology:Q838948 }
Part Time Wife Dinner at Eight Klondike Fury The Wings of Eagles This Thing Called Love Let's Fall in Love Call Out the Marines Honor Among Men Women of All Nations Black Sheep Misleading Lady Intruder in the Dust Espionage Good Intentions Transatlantic The Great Impersonation The Devil is Driving Mad Holiday Attorney for the Defense Every Day's a Holiday No More Women In Old Arizona The Enchanted Forest The Silent Command Heller in Pink Tights The Crooked Road Thunder in the Night Oh, What a Night Ports of Call Thru Different Eyes The Bad One Grand Exit Dillinger Under Pressure Guilty as Hell Under Cover of Night I Love That Man King Solomon of Broadway The Spider Bombay Mail Born Reckless Gift of Gab The Garden Murder Case Good Sam Hot Pepper Mister Dynamite Her Bodyguard Secrets of a Nurse Wolf of New York The Wizard The Last Hurrah I Love You Again
Under Cover of Night, The Bad One, In Old Arizona, The Wizard, I Love That Man, Klondike Fury, Born Reckless, Women of All Nations, Honor Among Men and Black Sheep have Edmund Lowe in their star cast and do n't have United Kingdom as their origination points
Under Cover of Night The Bad One In Old Arizona The Wizard I Love That Man Klondike Fury Born Reckless Women of All Nations Honor Among Men Black Sheep
action filter_type
action difference
action find_reverse
entity Edmund Lowe
relation cast member
action find_reverse
entity United Kingdom
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Edmund Lowe'], {'NOT': [[{'concept': 'work of art'}, 'country of origin', 'United Kingdom']]}]}
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Edmund_Lowe . FILTER NOT EXISTS { ?o property:country_of_origin resource:United_Kingdom } . ?o rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q145
P530
Q1048835
USER
How many political territories have a diplomatic relationship with United Kingdom ?
(Q145,P530,c(Q1048835))
action count
action filter_type
action find
entity Q145
relation P530
type Q1048835
['Q145', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Q145 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
United Kingdom
action count
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:United_Kingdom property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q183 Q408 Q16
(Q145,P530,c(Q1048835))
action count
action filter_type
action find
entity Q145
relation P530
type Q1048835
[ANSWER]
['Q145', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Q145 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
Germany Australia Canada
3
action count
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:United_Kingdom property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q41
P530
Q1048835
USER
And also tell me about Greece?
(Q41,P530,c(Q1048835))
action count
action filter_type
action find
entity Q41
relation P530
type Q1048835
['Q41', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Q41 property:P530 ?w . ?w rdf:type ontology:Q1048835 }
Greece
action count
action filter_type
action find
entity Greece
relation diplomatic relation
type political territorial entity
['Greece', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Greece property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q41,P530,c(Q1048835))
action count
action filter_type
action find
entity Q41
relation P530
type Q1048835
[ANSWER]
['Q41', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Q41 property:P530 ?w . ?w rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action filter_type
action find
entity Greece
relation diplomatic relation
type political territorial entity
['Greece', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Greece property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q31
Q1048835
USER
And what about Belgium?
(Q31,P530,c(Q1048835))
action count
action filter_type
action find
entity Q31
relation P530
type Q1048835
['Q31', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:Q1048835 . resource:Q31 property:P530 ?o }
Belgium
action count
action filter_type
action find
entity Belgium
relation diplomatic relation
type political territorial entity
['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Belgium property:diplomatic_relation ?o }
[]
political territorial entity
SYSTEM
2
(Q31,P530,c(Q1048835))
action count
action filter_type
action find
entity Q31
relation P530
type Q1048835
[ANSWER]
['Q31', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:Q1048835 . resource:Q31 property:P530 ?o }
2
action count
action filter_type
action find
entity Belgium
relation diplomatic relation
type political territorial entity
['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Belgium property:diplomatic_relation ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q31
P1313
Q12737077
USER
Which occupation is fulfilled by that administrative territory ?
action filter_type
action find
entity Q31
relation P1313
type Q12737077
SELECT DISTINCT ?b WHERE { resource:Q31 property:P1313 ?b . ?b rdf:type ontology:Q12737077 }
Belgium
action filter_type
action find
entity Belgium
relation office held by head of government
type occupation
SELECT DISTINCT ?b WHERE { resource:Belgium property:office_held_by_head_of_government ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q213107
SYSTEM
Prime Minister of Belgium
Q213107
action filter_type
action find
entity Q31
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that administrative territory
SELECT DISTINCT ?b WHERE { resource:Q31 property:P1313 ?b . ?b rdf:type ontology:Q12737077 }
Prime Minister of Belgium
The Prime Minister of Belgium is fulfilled by that administrative territory
Prime Minister of Belgium
action filter_type
action find
entity Belgium
relation office held by head of government
type occupation
SELECT DISTINCT ?b WHERE { resource:Belgium property:office_held_by_head_of_government ?b . ?b rdf:type ontology:occupation }
[]