Simple Question (Direct)
Simple Question
Q2561343
P21
Q290
USER
Which sex does Werner Gruner have ?
(Q2561343,P21,c(Q290))
action filter_type
action find
entity Q2561343
relation P21
type Q290
['Q2561343', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q2561343 property:P21 ?u . ?u rdf:type ontology:Q290 }
Werner Gruner
action filter_type
action find
entity Werner Gruner
relation gender
type sex
['Werner Gruner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Werner_Gruner property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2561343,P21,c(Q290))
action filter_type
action find
entity Q2561343
relation P21
type Q290
Werner Gruner has a [ANSWER]
['Q2561343', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q2561343 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
Werner Gruner has a male
male
action filter_type
action find
entity Werner Gruner
relation gender
type sex
['Werner Gruner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Werner_Gruner property:gender ?u . ?u rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2561343
P102
Q7278 Q7210356
USER
How many political parties and political organizations are Werner Gruner affiliated with ?
(Q2561343,P102,c(Q7278)) (Q2561343,P102,c(Q7210356))
action count
action union
action filter_type
action find
entity Q2561343
relation P102
type Q7278
action filter_type
action find
entity Q2561343
relation P102
type Q7210356
['Q2561343', 'P102', {'concept': 'Q7278'}] ['Q2561343', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { resource:Q2561343 property:P102 ?g . ?g rdf:type ontology:Q7278 } UNION { resource:Q2561343 property:P102 ?g . ?g rdf:type ontology:Q7210356 } }
Werner Gruner
action count
action union
action filter_type
action find
entity Werner Gruner
relation member of political party
type political party
action filter_type
action find
entity Werner Gruner
relation member of political party
type political organization
['Werner Gruner', 'member of political party', {'concept': 'political party'}] ['Werner Gruner', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { resource:Werner_Gruner property:member_of_political_party ?g . ?g rdf:type ontology:political_party } UNION { resource:Werner_Gruner property:member_of_political_party ?g . ?g rdf:type ontology:political_organization } }
[]
political party political organization
SYSTEM
1 political parties and 1 political organizations
Q7320 Q49750
(Q2561343,P102,c(Q7278)) (Q2561343,P102,c(Q7210356))
action count
action union
action filter_type
action find
entity Q2561343
relation P102
type Q7278
action filter_type
action find
entity Q2561343
relation P102
type Q7210356
[ANSWER]
['Q2561343', 'P102', {'concept': 'Q7278'}] ['Q2561343', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { resource:Q2561343 property:P102 ?g . ?g rdf:type ontology:Q7278 } UNION { resource:Q2561343 property:P102 ?g . ?g rdf:type ontology:Q7210356 } }
Nazi Party Socialist Unity Party of Germany
1 political parties and 1 political organizations
action count
action union
action filter_type
action find
entity Werner Gruner
relation member of political party
type political party
action filter_type
action find
entity Werner Gruner
relation member of political party
type political organization
['Werner Gruner', 'member of political party', {'concept': 'political party'}] ['Werner Gruner', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { resource:Werner_Gruner property:member_of_political_party ?g . ?g rdf:type ontology:political_party } UNION { resource:Werner_Gruner property:member_of_political_party ?g . ?g rdf:type ontology:political_organization } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2561343
P20
Q515
USER
How many cities did the expiration of Werner Gruner occur ?
(Q2561343,P20,c(Q515))
action count
action filter_type
action find
entity Q2561343
relation P20
type Q515
['Q2561343', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:Q2561343 property:P20 ?m . ?m rdf:type ontology:Q515 }
Werner Gruner
action count
action filter_type
action find
entity Werner Gruner
relation place of death
type city
['Werner Gruner', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:Werner_Gruner property:place_of_death ?m . ?m rdf:type ontology:city }
[]
city
SYSTEM
1
Q1731
(Q2561343,P20,c(Q515))
action count
action filter_type
action find
entity Q2561343
relation P20
type Q515
[ANSWER]
['Q2561343', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:Q2561343 property:P20 ?m . ?m rdf:type ontology:Q515 }
Dresden
1
action count
action filter_type
action find
entity Werner Gruner
relation place of death
type city
['Werner Gruner', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:Werner_Gruner property:place_of_death ?m . ?m rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q5083192
P20
Q515
USER
And also tell me about Charles W. Fisher?
(Q5083192,P20,c(Q515))
action count
action filter_type
action find
entity Q5083192
relation P20
type Q515
['Q5083192', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Q5083192 property:P20 ?p . ?p rdf:type ontology:Q515 }
Charles W. Fisher
action count
action filter_type
action find
entity Charles W. Fisher
relation place of death
type city
['Charles W. Fisher', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Charles_W._Fisher property:place_of_death ?p . ?p rdf:type ontology:city }
[]
city
SYSTEM
1
Q2096
(Q5083192,P20,c(Q515))
action count
action filter_type
action find
entity Q5083192
relation P20
type Q515
[ANSWER]
['Q5083192', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Q5083192 property:P20 ?p . ?p rdf:type ontology:Q515 }
Edmonton
1
action count
action filter_type
action find
entity Charles W. Fisher
relation place of death
type city
['Charles W. Fisher', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Charles_W._Fisher property:place_of_death ?p . ?p rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q920553
Q515
USER
And what about Roberto Grau?
(Q920553,P20,c(Q515))
action count
action filter_type
action find
entity Q920553
relation P20
type Q515
['Q920553', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Q920553 property:P20 ?c . ?c rdf:type ontology:Q515 }
Roberto Grau
action count
action filter_type
action find
entity Roberto Grau
relation place of death
type city
['Roberto Grau', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Roberto_Grau property:place_of_death ?c . ?c rdf:type ontology:city }
[]
city
SYSTEM
1
(Q920553,P20,c(Q515))
action count
action filter_type
action find
entity Q920553
relation P20
type Q515
[ANSWER]
['Q920553', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Q920553 property:P20 ?c . ?c rdf:type ontology:Q515 }
1
action count
action filter_type
action find
entity Roberto Grau
relation place of death
type city
['Roberto Grau', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Roberto_Grau property:place_of_death ?c . ?c rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by atleast 812 people ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 812
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?y } . FILTER ( ?a >= 812 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 812
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?y } . FILTER ( ?a >= 812 ) }
[]
musical instrument common name
Q5994 Q46185 Q8338
SYSTEM
piano, bass guitar, trumpet
Q46185 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 812
[ANSWERS] are played by atleast 812 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?y } . FILTER ( ?a >= 812 ) }
bass guitar piano trumpet cello violin organ drum kit
Piano, bass guitar and trumpet are played by atleast 812 people
piano bass guitar trumpet
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 812
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?y } . FILTER ( ?a >= 812 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q5994 Q46185 Q8338
P425
Q12737077
USER
Which occupations do those musical instruments belong to ?
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q46185) (c(Q12737077),P425,Q8338)
action filter_type
action find_reverse
entity prev_answer
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q46185'] [{'concept': 'Q12737077'}, 'P425', 'Q8338']
SELECT DISTINCT ?c WHERE { VALUES ( ?h ) { ( resource:Q46185 ) ( resource:Q5994 ) ( resource:Q8338 ) } . ?c property:P425 ?h . ?c rdf:type ontology:Q12737077 }
piano bass guitar trumpet
action filter_type
action find_reverse
entity prev_answer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'bass guitar'] [{'concept': 'occupation'}, 'field of this occupation', 'trumpet']
SELECT DISTINCT ?c WHERE { VALUES ( ?h ) { ( resource:bass_guitar ) ( resource:piano ) ( resource:trumpet ) } . ?c property:field_of_this_occupation ?h . ?c rdf:type ontology:occupation }
[]
occupation
Q17093672 Q885122 Q21504978
SYSTEM
trumpeter, piano maker, bass-guitarist
Q486748 Q885122 Q21504978 Q17093672
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q46185) (c(Q12737077),P425,Q8338)
action filter_type
action find_reverse
entity prev_answer
relation P425
type Q12737077
Those musical instruments belong to the [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q46185'] [{'concept': 'Q12737077'}, 'P425', 'Q8338']
SELECT DISTINCT ?c WHERE { VALUES ( ?h ) { ( resource:Q46185 ) ( resource:Q5994 ) ( resource:Q8338 ) } . ?c property:P425 ?h . ?c rdf:type ontology:Q12737077 }
pianist piano maker bass-guitarist trumpeter
Those musical instruments belong to the trumpeter, piano maker and bass-guitarist
trumpeter piano maker bass-guitarist
action filter_type
action find_reverse
entity prev_answer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'bass guitar'] [{'concept': 'occupation'}, 'field of this occupation', 'trumpet']
SELECT DISTINCT ?c WHERE { VALUES ( ?h ) { ( resource:bass_guitar ) ( resource:piano ) ( resource:trumpet ) } . ?c property:field_of_this_occupation ?h . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2561343
P19
Q486972
USER
Which human settlement is the birthplace of Werner Gruner ?
(Q2561343,P19,c(Q486972))
action filter_type
action find
entity Q2561343
relation P19
type Q486972
['Q2561343', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q486972 . resource:Q2561343 property:P19 ?r }
Werner Gruner
action filter_type
action find
entity Werner Gruner
relation place of birth
type human settlement
['Werner Gruner', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:human_settlement . resource:Werner_Gruner property:place_of_birth ?r }
[]
human settlement
Q227216
SYSTEM
Zschadraß
Q227216
(Q2561343,P19,c(Q486972))
action filter_type
action find
entity Q2561343
relation P19
type Q486972
[ANSWER] is the birthplace of Werner Gruner
['Q2561343', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q486972 . resource:Q2561343 property:P19 ?r }
Zschadraß
Zschadraß is the birthplace of Werner Gruner
Zschadraß
action filter_type
action find
entity Werner Gruner
relation place of birth
type human settlement
['Werner Gruner', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:human_settlement . resource:Werner_Gruner property:place_of_birth ?r }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1279276
Q486972
USER
And also tell me about Eberhard Preussner?
(Q1279276,P19,c(Q486972))
action filter_type
action find
entity Q1279276
relation P19
type Q486972
['Q1279276', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q486972 . resource:Q1279276 property:P19 ?z }
Eberhard Preussner
action filter_type
action find
entity Eberhard Preussner
relation place of birth
type human settlement
['Eberhard Preussner', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:human_settlement . resource:Eberhard_Preussner property:place_of_birth ?z }
[]
human settlement
Q105048
SYSTEM
Słupsk
Q105048
(Q1279276,P19,c(Q486972))
action filter_type
action find
entity Q1279276
relation P19
type Q486972
[ANSWER]
['Q1279276', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q486972 . resource:Q1279276 property:P19 ?z }
Słupsk
Słupsk
action filter_type
action find
entity Eberhard Preussner
relation place of birth
type human settlement
['Eberhard Preussner', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:human_settlement . resource:Eberhard_Preussner property:place_of_birth ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q105048
P17
Q15617994
USER
Which administrative territory is that human settlement a part of ?
(Q105048,P17,c(Q15617994))
action filter_type
action find
entity Q105048
relation P17
type Q15617994
['Q105048', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q105048 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Słupsk
action filter_type
action find
entity Słupsk
relation country
type designation for an administrative territorial entity
['Słupsk', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Słupsk property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q105048,P17,c(Q15617994))
action filter_type
action find
entity Q105048
relation P17
type Q15617994
The [ANSWER] is that human settlement a part of
['Q105048', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q105048 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Poland
The Poland is that human settlement a part of
Poland
action filter_type
action find
entity Słupsk
relation country
type designation for an administrative territorial entity
['Słupsk', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Słupsk property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q105048
P190
Q56061
USER
Which administrative territories are twin cities of Słupsk ?
(Q105048,P190,c(Q56061))
action filter_type
action find
entity Q105048
relation P190
type Q56061
['Q105048', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q105048 property:P190 ?a . ?a rdf:type ontology:Q56061 }
Słupsk
action filter_type
action find
entity Słupsk
relation sister city
type administrative territorial entity
['Słupsk', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Słupsk property:sister_city ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q181376 Q127623 Q1851
SYSTEM
Grodno, Vantaa, Arkhangelsk
Q841304 Q2608258 Q127623 Q181376 Q1012323 Q1851
(Q105048,P190,c(Q56061))
action filter_type
action find
entity Q105048
relation P190
type Q56061
[ANSWERS] are twin cities of Słupsk
['Q105048', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q105048 property:P190 ?a . ?a rdf:type ontology:Q56061 }
Cartaxo Municipality Vordingborg Vantaa Grodno Flensburg Arkhangelsk
Grodno, Vantaa and Arkhangelsk are twin cities of Słupsk
Grodno Vantaa Arkhangelsk
action filter_type
action find
entity Słupsk
relation sister city
type administrative territorial entity
['Słupsk', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Słupsk property:sister_city ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]