Simple Question (Direct)
Simple Question
Q1288070
P106
Q12737077
USER
What do Linn Banks do for a living ?
(Q1288070,P106,c(Q12737077))
action filter_type
action find
entity Q1288070
relation P106
type Q12737077
['Q1288070', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q1288070 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Linn Banks
action filter_type
action find
entity Linn Banks
relation occupation
type occupation
['Linn Banks', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Linn_Banks property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q82955 Q189290
SYSTEM
politician, officer
Q82955 Q189290
(Q1288070,P106,c(Q12737077))
action filter_type
action find
entity Q1288070
relation P106
type Q12737077
Linn Banks do as [ANSWERS] for a living
['Q1288070', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q1288070 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
politician officer
Linn Banks do as politician and officer for a living
politician officer
action filter_type
action find
entity Linn Banks
relation occupation
type occupation
['Linn Banks', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Linn_Banks property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q189290
P180
Q838948
USER
Which work of art depicts that occupation ?
(c(Q838948),P180,Q189290)
action filter_type
action find_reverse
entity Q189290
relation P180
type Q838948
[{'concept': 'Q838948'}, 'P180', 'Q189290']
SELECT DISTINCT ?u WHERE { ?u property:P180 resource:Q189290 . ?u rdf:type ontology:Q838948 }
officer
action filter_type
action find_reverse
entity officer
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'officer']
SELECT DISTINCT ?u WHERE { ?u property:depicts resource:officer . ?u rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q82955
SYSTEM
Did you mean politician ?
Q82955 Q189290
(c(Q838948),P180,Q82955) (c(Q838948),P180,Q189290)
[ANSWER]
[{'concept': 'Q838948'}, 'P180', 'Q82955'] [{'concept': 'Q838948'}, 'P180', 'Q189290']
SELECT DISTINCT ?u WHERE { ?u property:P180 resource:Q189290 . ?u rdf:type ontology:Q838948 }
politician officer
Did you mean politician ?
politician
[{'concept': 'work of art'}, 'depicts', 'politician'] [{'concept': 'work of art'}, 'depicts', 'officer']
SELECT DISTINCT ?u WHERE { ?u property:depicts resource:officer . ?u rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant officer. Could you tell me the answer for that?
(c(Q838948),P180,Q189290)
Q189290
[{'concept': 'Q838948'}, 'P180', 'Q189290']
[{'concept': 'work of art'}, 'depicts', 'officer']
[]
Q19092276
SYSTEM
Tomb of Charles de Maigny
Q19092276
(c(Q838948),P180,Q189290)
action filter_type
action find_reverse
entity Q189290
relation P180
type Q838948
The [ANSWER] depicts that occupation
[{'concept': 'Q838948'}, 'P180', 'Q189290']
SELECT DISTINCT ?u WHERE { ?u property:P180 resource:Q189290 . ?u rdf:type ontology:Q838948 }
Tomb of Charles de Maigny
The Tomb of Charles de Maigny depicts that occupation
Tomb of Charles de Maigny
action filter_type
action find_reverse
entity officer
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'officer']
SELECT DISTINCT ?u WHERE { ?u property:depicts resource:officer . ?u rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19092276
P186
Q214609
USER
Which material is used to make that work of art ?
(Q19092276,P186,c(Q214609))
action filter_type
action find
entity Q19092276
relation P186
type Q214609
['Q19092276', 'P186', {'concept': 'Q214609'}]
SELECT DISTINCT ?z WHERE { resource:Q19092276 property:P186 ?z . ?z rdf:type ontology:Q214609 }
Tomb of Charles de Maigny
action filter_type
action find
entity Tomb of Charles de Maigny
relation material used
type material
['Tomb of Charles de Maigny', 'material used', {'concept': 'material'}]
SELECT DISTINCT ?z WHERE { resource:Tomb_of_Charles_de_Maigny property:material_used ?z . ?z rdf:type ontology:material }
[]
material
Q22731
SYSTEM
stone
Q22731
(Q19092276,P186,c(Q214609))
action filter_type
action find
entity Q19092276
relation P186
type Q214609
The [ANSWER] is used to make that work of art
['Q19092276', 'P186', {'concept': 'Q214609'}]
SELECT DISTINCT ?z WHERE { resource:Q19092276 property:P186 ?z . ?z rdf:type ontology:Q214609 }
stone
The stone is used to make that work of art
stone
action filter_type
action find
entity Tomb of Charles de Maigny
relation material used
type material
['Tomb of Charles de Maigny', 'material used', {'concept': 'material'}]
SELECT DISTINCT ?z WHERE { resource:Tomb_of_Charles_de_Maigny property:material_used ?z . ?z rdf:type ontology:material }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P186
Q8063 Q214609
USER
Which rocks are used to produce max number of materials ?
(c(Q214609),P186,Q332748)
action argmax
action find_reverse_tuple_counts
relation P186
type Q8063
type Q214609
[{'concept': 'Q214609'}, 'P186', 'Q332748']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?h ) WHERE { ?w rdf:type ontology:Q8063 . ?o rdf:type ontology:Q214609 . ?o property:P186 ?w } GROUP BY ?w } } . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?p ) WHERE { ?u property:P186 ?f . ?u rdf:type ontology:Q214609 . ?f rdf:type ontology:Q8063 } GROUP BY ?f } . FILTER ( ?p = ?i ) }
action argmax
action find_reverse_tuple_counts
relation material used
type rock
type material
[{'concept': 'material'}, 'material used', 'trachyte']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?h ) WHERE { ?w rdf:type ontology:rock . ?o rdf:type ontology:material . ?o property:material_used ?w } GROUP BY ?w } } . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?p ) WHERE { ?u property:material_used ?f . ?u rdf:type ontology:material . ?f rdf:type ontology:rock } GROUP BY ?f } . FILTER ( ?p = ?i ) }
[]
rock material
Q42302
SYSTEM
clay
Q42302
(c(Q214609),P186,Q332748)
action argmax
action find_reverse_tuple_counts
relation P186
type Q8063
type Q214609
The [ANSWER] is used to produce max number of materials
[{'concept': 'Q214609'}, 'P186', 'Q332748']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?h ) WHERE { ?w rdf:type ontology:Q8063 . ?o rdf:type ontology:Q214609 . ?o property:P186 ?w } GROUP BY ?w } } . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?p ) WHERE { ?u property:P186 ?f . ?u rdf:type ontology:Q214609 . ?f rdf:type ontology:Q8063 } GROUP BY ?f } . FILTER ( ?p = ?i ) }
clay
The clay is used to produce max number of materials
clay
action argmax
action find_reverse_tuple_counts
relation material used
type rock
type material
[{'concept': 'material'}, 'material used', 'trachyte']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?h ) WHERE { ?w rdf:type ontology:rock . ?o rdf:type ontology:material . ?o property:material_used ?w } GROUP BY ?w } } . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?p ) WHERE { ?u property:material_used ?f . ?u rdf:type ontology:material . ?f rdf:type ontology:rock } GROUP BY ?f } . FILTER ( ?p = ?i ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q19092276
P195
Q2668072
USER
How many collections include Tomb of Charles de Maigny in it ?
(Q19092276,P195,c(Q2668072))
action count
action filter_type
action find
entity Q19092276
relation P195
type Q2668072
['Q19092276', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:Q19092276 property:P195 ?j . ?j rdf:type ontology:Q2668072 }
Tomb of Charles de Maigny
action count
action filter_type
action find
entity Tomb of Charles de Maigny
relation collection
type collection
['Tomb of Charles de Maigny', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:Tomb_of_Charles_de_Maigny property:collection ?j . ?j rdf:type ontology:collection }
[]
collection
SYSTEM
1
Q3044772
(Q19092276,P195,c(Q2668072))
action count
action filter_type
action find
entity Q19092276
relation P195
type Q2668072
[ANSWER]
['Q19092276', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:Q19092276 property:P195 ?j . ?j rdf:type ontology:Q2668072 }
Department of Sculptures of the Louvre
1
action count
action filter_type
action find
entity Tomb of Charles de Maigny
relation collection
type collection
['Tomb of Charles de Maigny', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:Tomb_of_Charles_de_Maigny property:collection ?j . ?j rdf:type ontology:collection }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q20408069
P195
Q2668072
USER
And how about Melon og kirsebær på et bord med et vinglas?
(Q20408069,P195,c(Q2668072))
action count
action filter_type
action find
entity Q20408069
relation P195
type Q2668072
['Q20408069', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Q20408069 property:P195 ?u . ?u rdf:type ontology:Q2668072 }
Melon og kirsebær på et bord med et vinglas
action count
action filter_type
action find
entity Melon og kirsebær på et bord med et vinglas
relation collection
type collection
['Melon og kirsebær på et bord med et vinglas', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Melon_og_kirsebær_på_et_bord_med_et_vinglas property:collection ?u . ?u rdf:type ontology:collection }
[]
collection
SYSTEM
1
Q671384
(Q20408069,P195,c(Q2668072))
action count
action filter_type
action find
entity Q20408069
relation P195
type Q2668072
[ANSWER]
['Q20408069', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Q20408069 property:P195 ?u . ?u rdf:type ontology:Q2668072 }
Statens Museum for Kunst
1
action count
action filter_type
action find
entity Melon og kirsebær på et bord med et vinglas
relation collection
type collection
['Melon og kirsebær på et bord med et vinglas', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Melon_og_kirsebær_på_et_bord_med_et_vinglas property:collection ?u . ?u rdf:type ontology:collection }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q20539249
Q2668072
USER
And how about Study of a Beech at Engelholm in Zealand?
(Q20539249,P195,c(Q2668072))
action count
action filter_type
action find
entity Q20539249
relation P195
type Q2668072
['Q20539249', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d rdf:type ontology:Q2668072 . resource:Q20539249 property:P195 ?d }
Study of a Beech at Engelholm in Zealand
action count
action filter_type
action find
entity Study of a Beech at Engelholm in Zealand
relation collection
type collection
['Study of a Beech at Engelholm in Zealand', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d rdf:type ontology:collection . resource:Study_of_a_Beech_at_Engelholm_in_Zealand property:collection ?d }
[]
collection
SYSTEM
1
(Q20539249,P195,c(Q2668072))
action count
action filter_type
action find
entity Q20539249
relation P195
type Q2668072
[ANSWER]
['Q20539249', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d rdf:type ontology:Q2668072 . resource:Q20539249 property:P195 ?d }
1
action count
action filter_type
action find
entity Study of a Beech at Engelholm in Zealand
relation collection
type collection
['Study of a Beech at Engelholm in Zealand', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d rdf:type ontology:collection . resource:Study_of_a_Beech_at_Engelholm_in_Zealand property:collection ?d }
[]