Simple Question (Direct)
Simple Question
Q4332333
P17
Q3024240
USER
Which former country does Ozyornoye belong to ?
(Q4332333,P17,c(Q3024240))
action filter_type
action find
entity Q4332333
relation P17
type Q3024240
['Q4332333', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?f WHERE { resource:Q4332333 property:P17 ?f . ?f rdf:type ontology:Q3024240 }
Ozyornoye
action filter_type
action find
entity Ozyornoye
relation country
type former country
['Ozyornoye', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?f WHERE { resource:Ozyornoye property:country ?f . ?f rdf:type ontology:former_country }
[]
former country
Q34266
SYSTEM
Russian Empire
Q34266
(Q4332333,P17,c(Q3024240))
action filter_type
action find
entity Q4332333
relation P17
type Q3024240
Ozyornoye belongs to [ANSWER]
['Q4332333', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?f WHERE { resource:Q4332333 property:P17 ?f . ?f rdf:type ontology:Q3024240 }
Russian Empire
Ozyornoye belongs to Russian Empire
Russian Empire
action filter_type
action find
entity Ozyornoye
relation country
type former country
['Ozyornoye', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?f WHERE { resource:Ozyornoye property:country ?f . ?f rdf:type ontology:former_country }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4332333
P19
Q502895
USER
Which person was born at that political territory ?
(c(Q502895),P19,Q34266)
action filter_type
action find_reverse
entity Q4332333
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q34266']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P19 resource:Q4332333 }
Ozyornoye
action filter_type
action find_reverse
entity Ozyornoye
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Russian Empire']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:place_of_birth resource:Ozyornoye }
[]
common name
Q58285
SYSTEM
Alexandru Averescu
Q58285
(c(Q502895),P19,Q34266)
action filter_type
action find_reverse
entity Q4332333
relation P19
type Q502895
[ANSWER] was born at that political territory
[{'concept': 'Q502895'}, 'P19', 'Q34266']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P19 resource:Q4332333 }
Alexandru Averescu
Alexandru Averescu was born at that political territory
Alexandru Averescu
action filter_type
action find_reverse
entity Ozyornoye
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Russian Empire']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:place_of_birth resource:Ozyornoye }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q58285 Q3750 Q574903
P937
Q515
USER
Does that person works at Gera and Lapu-Lapu ?
(Q58285,P937,Q3750) (Q58285,P937,Q574903)
action is_in
entity Q58285
action intersection
action find_reverse
entity Q3750
relation P937
action find_reverse
entity Q574903
relation P937
['Q58285', 'P937', 'Q3750'] ['Q58285', 'P937', 'Q574903']
ASK WHERE { resource:Q58285 property:P937 resource:Q574903 . resource:Q58285 property:P937 resource:Q3750 }
Alexandru Averescu Gera Lapu-Lapu
action is_in
entity Alexandru Averescu
action intersection
action find_reverse
entity Gera
relation work location
action find_reverse
entity Lapu-Lapu
relation work location
['Alexandru Averescu', 'work location', 'Gera'] ['Alexandru Averescu', 'work location', 'Lapu-Lapu']
ASK WHERE { resource:Alexandru_Averescu property:work_location resource:Lapu-Lapu . resource:Alexandru_Averescu property:work_location resource:Gera }
[]
city
SYSTEM
NO
(Q58285,P937,Q3750) (Q58285,P937,Q574903)
action is_in
entity Q58285
action intersection
action find_reverse
entity Q3750
relation P937
action find_reverse
entity Q574903
relation P937
[ANSWER]
['Q58285', 'P937', 'Q3750'] ['Q58285', 'P937', 'Q574903']
ASK WHERE { resource:Q58285 property:P937 resource:Q574903 . resource:Q58285 property:P937 resource:Q3750 }
No
action is_in
entity Alexandru Averescu
action intersection
action find_reverse
entity Gera
relation work location
action find_reverse
entity Lapu-Lapu
relation work location
['Alexandru Averescu', 'work location', 'Gera'] ['Alexandru Averescu', 'work location', 'Lapu-Lapu']
ASK WHERE { resource:Alexandru_Averescu property:work_location resource:Lapu-Lapu . resource:Alexandru_Averescu property:work_location resource:Gera }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q58285
P39
Q12737077
USER
Which occupations were the positions occupied by Alexandru Averescu ?
(Q58285,P39,c(Q12737077))
action filter_type
action find
entity Q58285
relation P39
type Q12737077
['Q58285', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q58285 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Alexandru Averescu
action filter_type
action find
entity Alexandru Averescu
relation position held
type occupation
['Alexandru Averescu', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Alexandru_Averescu property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q15304810 Q21504197 Q19938957
SYSTEM
Prime Minister of Romania, Minister of National Defence, member of the Senate of Romania
Q21504197 Q19938957 Q15304810 Q5097072
(Q58285,P39,c(Q12737077))
action filter_type
action find
entity Q58285
relation P39
type Q12737077
The [ANSWERS] were the positions occupied by Alexandru Averescu
['Q58285', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q58285 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Minister of National Defence member of the Senate of Romania Prime Minister of Romania Chief of the Romanian General Staff
The Prime Minister of Romania, Minister of National Defence and member of the Senate of Romania were the positions occupied by Alexandru Averescu
Prime Minister of Romania Minister of National Defence member of the Senate of Romania
action filter_type
action find
entity Alexandru Averescu
relation position held
type occupation
['Alexandru Averescu', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Alexandru_Averescu property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12737077 Q838948 Q2342494
USER
Which occupations were max number of works of art and collectables mainly about ?
(c(Q838948)|c(Q2342494),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q838948 } UNION { ?c property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q2342494 } } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?h ) WHERE { { ?w property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q838948 } UNION { ?w property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q2342494 } } GROUP BY ?y } . FILTER ( ?h = ?m ) }
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:main_subject ?r . ?r rdf:type ontology:occupation . ?c rdf:type ontology:work_of_art } UNION { ?c property:main_subject ?r . ?r rdf:type ontology:occupation . ?c rdf:type ontology:collectable } } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?h ) WHERE { { ?w property:main_subject ?y . ?y rdf:type ontology:occupation . ?w rdf:type ontology:work_of_art } UNION { ?w property:main_subject ?y . ?y rdf:type ontology:occupation . ?w rdf:type ontology:collectable } } GROUP BY ?y } . FILTER ( ?h = ?m ) }
[]
occupation work of art collectable
Q9402
SYSTEM
ninja
Q9402
(c(Q838948)|c(Q2342494),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
Max number of works of art and collectables mainly about were the [ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q838948 } UNION { ?c property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q2342494 } } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?h ) WHERE { { ?w property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q838948 } UNION { ?w property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q2342494 } } GROUP BY ?y } . FILTER ( ?h = ?m ) }
ninja
Max number of works of art and collectables mainly about were the ninja
ninja
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:main_subject ?r . ?r rdf:type ontology:occupation . ?c rdf:type ontology:work_of_art } UNION { ?c property:main_subject ?r . ?r rdf:type ontology:occupation . ?c rdf:type ontology:collectable } } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?h ) WHERE { { ?w property:main_subject ?y . ?y rdf:type ontology:occupation . ?w rdf:type ontology:work_of_art } UNION { ?w property:main_subject ?y . ?y rdf:type ontology:occupation . ?w rdf:type ontology:collectable } } GROUP BY ?y } . FILTER ( ?h = ?m ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q15304810
P1001
Q15617994
USER
How many administrative territories belong to jurisdiction of Prime Minister of Romania ?
(Q15304810,P1001,c(Q15617994))
action count
action filter_type
action find
entity Q15304810
relation P1001
type Q15617994
['Q15304810', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { resource:Q15304810 property:P1001 ?j . ?j rdf:type ontology:Q15617994 }
Prime Minister of Romania
action count
action filter_type
action find
entity Prime Minister of Romania
relation applies to jurisdiction
type designation for an administrative territorial entity
['Prime Minister of Romania', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { resource:Prime_Minister_of_Romania property:applies_to_jurisdiction ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q218
(Q15304810,P1001,c(Q15617994))
action count
action filter_type
action find
entity Q15304810
relation P1001
type Q15617994
[ANSWER]
['Q15304810', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { resource:Q15304810 property:P1001 ?j . ?j rdf:type ontology:Q15617994 }
Romania
1
action count
action filter_type
action find
entity Prime Minister of Romania
relation applies to jurisdiction
type designation for an administrative territorial entity
['Prime Minister of Romania', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { resource:Prime_Minister_of_Romania property:applies_to_jurisdiction ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15304810
P466
Q811979
USER
Which architectural structure is occupied by that occupation ?
action filter_type
action find_reverse
entity Q15304810
relation P466
type Q811979
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q811979 . ?s property:P466 resource:Q15304810 }
Prime Minister of Romania
action filter_type
action find_reverse
entity Prime Minister of Romania
relation occupant
type architectural structure
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:architectural_structure . ?s property:occupant resource:Prime_Minister_of_Romania }
[]
architectural structure
Q1677897
SYSTEM
Victoria Palace
Q1677897
action filter_type
action find_reverse
entity Q15304810
relation P466
type Q811979
[ANSWER] is occupied by that occupation
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q811979 . ?s property:P466 resource:Q15304810 }
Victoria Palace
Victoria Palace is occupied by that occupation
Victoria Palace
action filter_type
action find_reverse
entity Prime Minister of Romania
relation occupant
type architectural structure
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:architectural_structure . ?s property:occupant resource:Prime_Minister_of_Romania }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1677897
P84
Q502895
USER
Which person designed the architecture of that architectural structure ?
(Q1677897,P84,c(Q502895))
action filter_type
action find
entity Q1677897
relation P84
type Q502895
['Q1677897', 'P84', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1677897 property:P84 ?e . ?e rdf:type ontology:Q502895 }
Victoria Palace
action filter_type
action find
entity Victoria Palace
relation architect
type common name
['Victoria Palace', 'architect', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Victoria_Palace property:architect ?e . ?e rdf:type ontology:common_name }
[]
common name
Q3780294
SYSTEM
Duiliu Marcu
Q3780294
(Q1677897,P84,c(Q502895))
action filter_type
action find
entity Q1677897
relation P84
type Q502895
[ANSWER] designed the architecture of that architectural structure
['Q1677897', 'P84', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1677897 property:P84 ?e . ?e rdf:type ontology:Q502895 }
Duiliu Marcu
Duiliu Marcu designed the architecture of that architectural structure
Duiliu Marcu
action filter_type
action find
entity Victoria Palace
relation architect
type common name
['Victoria Palace', 'architect', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Victoria_Palace property:architect ?e . ?e rdf:type ontology:common_name }
[]