Simple Question (Direct)
Simple Question
Q84859
P106
Q151885
USER
Which concept is the profession of Henri James Simon ?
(Q84859,P106,c(Q151885))
action filter_type
action find
entity Q84859
relation P106
type Q151885
['Q84859', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?g WHERE { resource:Q84859 property:P106 ?g . ?g rdf:type ontology:Q151885 }
Henri James Simon
action filter_type
action find
entity Henri James Simon
relation occupation
type concept
['Henri James Simon', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?g WHERE { resource:Henri_James_Simon property:occupation ?g . ?g rdf:type ontology:concept }
[]
concept
Q10732476
SYSTEM
art collector
Q10732476
(Q84859,P106,c(Q151885))
action filter_type
action find
entity Q84859
relation P106
type Q151885
The [ANSWER] is the profession of Henri James Simon
['Q84859', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?g WHERE { resource:Q84859 property:P106 ?g . ?g rdf:type ontology:Q151885 }
art collector
The art collector is the profession of Henri James Simon
art collector
action filter_type
action find
entity Henri James Simon
relation occupation
type concept
['Henri James Simon', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?g WHERE { resource:Henri_James_Simon property:occupation ?g . ?g rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10732476
P425
Q17519152
USER
Which group of objects is associated with the field of occupation that concept ?
(Q10732476,P425,c(Q17519152))
action filter_type
action find
entity Q10732476
relation P425
type Q17519152
['Q10732476', 'P425', {'concept': 'Q17519152'}]
SELECT DISTINCT ?f WHERE { resource:Q10732476 property:P425 ?f . ?f rdf:type ontology:Q17519152 }
art collector
action filter_type
action find
entity art collector
relation field of this occupation
type group of objects
['art collector', 'field of this occupation', {'concept': 'group of objects'}]
SELECT DISTINCT ?f WHERE { resource:art_collector property:field_of_this_occupation ?f . ?f rdf:type ontology:group_of_objects }
[]
group of objects
Q768717
SYSTEM
private collection
Q768717
(Q10732476,P425,c(Q17519152))
action filter_type
action find
entity Q10732476
relation P425
type Q17519152
[ANSWER] is associated with the field of occupation that concept
['Q10732476', 'P425', {'concept': 'Q17519152'}]
SELECT DISTINCT ?f WHERE { resource:Q10732476 property:P425 ?f . ?f rdf:type ontology:Q17519152 }
private collection
Private collection is associated with the field of occupation that concept
private collection
action filter_type
action find
entity art collector
relation field of this occupation
type group of objects
['art collector', 'field of this occupation', {'concept': 'group of objects'}]
SELECT DISTINCT ?f WHERE { resource:art_collector property:field_of_this_occupation ?f . ?f rdf:type ontology:group_of_objects }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q271669 Q82794 Q151885
USER
Which concepts are located in max number of landforms or geographic regions ?
(c(Q151885),P706,c(Q271669)|c(Q82794))
action argmax
action union
action find_tuple_counts
relation P706
type Q151885
type Q271669
action find_tuple_counts
relation P706
type Q151885
type Q82794
[{'concept': 'Q151885'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q82794'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) ?l WHERE { ?v rdf:type ?b . VALUES ( ?b ) { ( ontology:Q82794 ) ( ontology:Q271669 ) } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?s WHERE { VALUES ( ?h ) { ( ontology:Q271669 ) ( ontology:Q82794 ) } . ?p rdf:type ?h } GROUP BY ?s } . FILTER ( ?x = ?g ) }
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type concept
type landform
action find_tuple_counts
relation located on terrain feature
type concept
type geographic region
[{'concept': 'concept'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'geographic region'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) ?l WHERE { ?v rdf:type ?b . VALUES ( ?b ) { ( ontology:geographic_region ) ( ontology:landform ) } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?s WHERE { VALUES ( ?h ) { ( ontology:landform ) ( ontology:geographic_region ) } . ?p rdf:type ?h } GROUP BY ?s } . FILTER ( ?x = ?g ) }
[]
landform geographic region concept
Q1807594 Q2556093
SYSTEM
Luco-Meluno culture, Gumelniţa–Karanovo culture
Q1807594 Q2556093
(c(Q151885),P706,c(Q271669)|c(Q82794))
action argmax
action union
action find_tuple_counts
relation P706
type Q151885
type Q271669
action find_tuple_counts
relation P706
type Q151885
type Q82794
[ANSWERS] are located in max number of landforms or geographic regions
[{'concept': 'Q151885'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q82794'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) ?l WHERE { ?v rdf:type ?b . VALUES ( ?b ) { ( ontology:Q82794 ) ( ontology:Q271669 ) } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?s WHERE { VALUES ( ?h ) { ( ontology:Q271669 ) ( ontology:Q82794 ) } . ?p rdf:type ?h } GROUP BY ?s } . FILTER ( ?x = ?g ) }
Luco-Meluno culture Gumelniţa–Karanovo culture
Luco-Meluno culture and Gumelniţa–Karanovo culture are located in max number of landforms or geographic regions
Luco-Meluno culture Gumelniţa–Karanovo culture
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type concept
type landform
action find_tuple_counts
relation located on terrain feature
type concept
type geographic region
[{'concept': 'concept'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'geographic region'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) ?l WHERE { ?v rdf:type ?b . VALUES ( ?b ) { ( ontology:geographic_region ) ( ontology:landform ) } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?s WHERE { VALUES ( ?h ) { ( ontology:landform ) ( ontology:geographic_region ) } . ?p rdf:type ?h } GROUP BY ?s } . FILTER ( ?x = ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q202023
P706
Q1048835 Q151885
USER
Which political territories are greater number of concepts located on than Herm ?
(c(Q151885),P706,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
action count
action filter_type
action find
entity Q202023
relation P706
type Q1048835
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:P706 ?b . ?b rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q151885 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { ?q rdf:type ontology:Q1048835 . resource:Q202023 property:P706 ?q } } . FILTER ( ?o > ?l ) }
Herm
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
action count
action filter_type
action find
entity Herm
relation located on terrain feature
type political territorial entity
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:located_on_terrain_feature ?b . ?b rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:concept } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { ?q rdf:type ontology:political_territorial_entity . resource:Herm property:located_on_terrain_feature ?q } } . FILTER ( ?o > ?l ) }
[]
political territorial entity concept
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
(c(Q151885),P706,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
action count
action filter_type
action find
entity Q202023
relation P706
type Q1048835
[ANSWERS] are greater number of concepts located on than Herm
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:P706 ?b . ?b rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q151885 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { ?q rdf:type ontology:Q1048835 . resource:Q202023 property:P706 ?q } } . FILTER ( ?o > ?l ) }
Germany Denmark
Germany and Denmark are greater number of concepts located on than Herm
Germany Denmark
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
action count
action filter_type
action find
entity Herm
relation located on terrain feature
type political territorial entity
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:located_on_terrain_feature ?b . ?b rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:concept } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { ?q rdf:type ontology:political_territorial_entity . resource:Herm property:located_on_terrain_feature ?q } } . FILTER ( ?o > ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q10557
P706
Q1048835 Q151885
USER
And how about Swabia?
(c(Q151885),P706,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
action count
action filter_type
action find
entity Q10557
relation P706
type Q1048835
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?d ) WHERE { ?q rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q151885 . ?v property:P706 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?s rdf:type ontology:Q1048835 . resource:Q10557 property:P706 ?s } } . FILTER ( ?d > ?c ) }
Swabia
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
action count
action filter_type
action find
entity Swabia
relation located on terrain feature
type political territorial entity
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?d ) WHERE { ?q rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:concept . ?v property:located_on_terrain_feature ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Swabia property:located_on_terrain_feature ?s } } . FILTER ( ?d > ?c ) }
[]
political territorial entity concept
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
(c(Q151885),P706,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
action count
action filter_type
action find
entity Q10557
relation P706
type Q1048835
[ANSWERS]
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?d ) WHERE { ?q rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q151885 . ?v property:P706 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?s rdf:type ontology:Q1048835 . resource:Q10557 property:P706 ?s } } . FILTER ( ?d > ?c ) }
Germany Denmark
Germany Denmark
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
action count
action filter_type
action find
entity Swabia
relation located on terrain feature
type political territorial entity
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?d ) WHERE { ?q rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:concept . ?v property:located_on_terrain_feature ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Swabia property:located_on_terrain_feature ?s } } . FILTER ( ?d > ?c ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q183 Q35
P361
Q2221906
USER
Which geographic locations are those political territories a part of ?
(Q183,P361,c(Q2221906)) (Q35,P361,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P361
type Q2221906
['Q183', 'P361', {'concept': 'Q2221906'}] ['Q35', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?i WHERE { ?t property:P361 ?i . VALUES ( ?t ) { ( resource:Q183 ) ( resource:Q35 ) } . ?i rdf:type ontology:Q2221906 }
Germany Denmark
action filter_type
action find
entity prev_answer
relation part of
type geographic location
['Germany', 'part of', {'concept': 'geographic location'}] ['Denmark', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?i WHERE { ?t property:part_of ?i . VALUES ( ?t ) { ( resource:Germany ) ( resource:Denmark ) } . ?i rdf:type ontology:geographic_location }
[]
geographic location
Q46 Q46 Q21195
SYSTEM
Europe for 1st, 2nd, Scandinavia for 3rd
Q46 Q27509 Q46 Q21195
(Q183,P361,c(Q2221906)) (Q35,P361,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P361
type Q2221906
[ANSWERS]
['Q183', 'P361', {'concept': 'Q2221906'}] ['Q35', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?i WHERE { ?t property:P361 ?i . VALUES ( ?t ) { ( resource:Q183 ) ( resource:Q35 ) } . ?i rdf:type ontology:Q2221906 }
Europe Central Europe Europe Scandinavia
Europe, Europe and Scandinavia are those political territories a part of
Europe Europe Scandinavia
action filter_type
action find
entity prev_answer
relation part of
type geographic location
['Germany', 'part of', {'concept': 'geographic location'}] ['Denmark', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?i WHERE { ?t property:part_of ?i . VALUES ( ?t ) { ( resource:Germany ) ( resource:Denmark ) } . ?i rdf:type ontology:geographic_location }
[]
Clarification
Simple Question|Single Entity|Indirect
Q21195
P276
Q24457356
USER
Which historiographical concepts have their location as that one ?
(c(Q24457356),P276,Q21195)
action filter_type
action find_reverse
entity Q21195
relation P276
type Q24457356
[{'concept': 'Q24457356'}, 'P276', 'Q21195']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q24457356 . ?o property:P276 resource:Q21195 }
Scandinavia
action filter_type
action find_reverse
entity Scandinavia
relation location
type historiographical concept
[{'concept': 'historiographical concept'}, 'location', 'Scandinavia']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:historiographical_concept . ?o property:location resource:Scandinavia }
[]
historiographical concept
Clarification for simple ques.
Q46
SYSTEM
Did you mean Europe ?
Q46 Q46 Q21195
(c(Q24457356),P276,Q46) (c(Q24457356),P276,Q46) (c(Q24457356),P276,Q21195)
[ANSWER]
[{'concept': 'Q24457356'}, 'P276', 'Q46'] [{'concept': 'Q24457356'}, 'P276', 'Q46'] [{'concept': 'Q24457356'}, 'P276', 'Q21195']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q24457356 . ?o property:P276 resource:Q21195 }
Europe Europe Scandinavia
Did you mean Europe ?
Europe
[{'concept': 'historiographical concept'}, 'location', 'Europe'] [{'concept': 'historiographical concept'}, 'location', 'Europe'] [{'concept': 'historiographical concept'}, 'location', 'Scandinavia']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:historiographical_concept . ?o property:location resource:Scandinavia }
[]
Simple Question (Coreferenced)
USER
No, I meant Scandinavia. Could you tell me the answer for that?
(c(Q24457356),P276,Q21195)
Q21195
[{'concept': 'Q24457356'}, 'P276', 'Q21195']
[{'concept': 'historiographical concept'}, 'location', 'Scandinavia']
[]
Q222466 Q1726564
SYSTEM
Norse art, Ringerike style
Q222466 Q1726564
(c(Q24457356),P276,Q21195)
action filter_type
action find_reverse
entity Q21195
relation P276
type Q24457356
[ANSWERS] have their location as that one
[{'concept': 'Q24457356'}, 'P276', 'Q21195']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q24457356 . ?o property:P276 resource:Q21195 }
Norse art Ringerike style
Norse art and Ringerike style have their location as that one
Norse art Ringerike style
action filter_type
action find_reverse
entity Scandinavia
relation location
type historiographical concept
[{'concept': 'historiographical concept'}, 'location', 'Scandinavia']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:historiographical_concept . ?o property:location resource:Scandinavia }
[]