Simple Question (Direct)
Simple Question
Q468104
P102
Q7210356
USER
Which party is Joseph Lebeau affiliated with ?
(Q468104,P102,c(Q7210356))
action filter_type
action find
entity Q468104
relation P102
type Q7210356
['Q468104', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7210356 . resource:Q468104 property:P102 ?k }
Joseph Lebeau
action filter_type
action find
entity Joseph Lebeau
relation member of political party
type political organization
['Joseph Lebeau', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_organization . resource:Joseph_Lebeau property:member_of_political_party ?k }
[]
political organization
Q2636334
SYSTEM
Liberal Party
Q2636334
(Q468104,P102,c(Q7210356))
action filter_type
action find
entity Q468104
relation P102
type Q7210356
Joseph Lebeau is affiliated with [ANSWER]
['Q468104', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7210356 . resource:Q468104 property:P102 ?k }
Liberal Party
Joseph Lebeau is affiliated with Liberal Party
Liberal Party
action filter_type
action find
entity Joseph Lebeau
relation member of political party
type political organization
['Joseph Lebeau', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_organization . resource:Joseph_Lebeau property:member_of_political_party ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q468104
P21
Q290
USER
Which sex does Joseph Lebeau possess ?
(Q468104,P21,c(Q290))
action filter_type
action find
entity Q468104
relation P21
type Q290
['Q468104', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q468104 property:P21 ?r . ?r rdf:type ontology:Q290 }
Joseph Lebeau
action filter_type
action find
entity Joseph Lebeau
relation gender
type sex
['Joseph Lebeau', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Joseph_Lebeau property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q468104,P21,c(Q290))
action filter_type
action find
entity Q468104
relation P21
type Q290
Joseph Lebeau possesses un [ANSWER]
['Q468104', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q468104 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Joseph Lebeau possesses un male
male
action filter_type
action find
entity Joseph Lebeau
relation gender
type sex
['Joseph Lebeau', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Joseph_Lebeau property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q468104
P39
Q12737077
USER
Which occupations were the positions occupied by that person ?
(Q6581097,P39,c(Q12737077))
action filter_type
action find
entity Q468104
relation P39
type Q12737077
['Q6581097', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q468104 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Joseph Lebeau
action filter_type
action find
entity Joseph Lebeau
relation position held
type occupation
['male', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Joseph_Lebeau property:position_held ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q15705021 Q213107
SYSTEM
member of the Chamber of Representatives of Belgium, Prime Minister of Belgium
Q15705021 Q213107
(Q6581097,P39,c(Q12737077))
action filter_type
action find
entity Q468104
relation P39
type Q12737077
[ANSWERS] were the positions occupied by that person
['Q6581097', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q468104 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
member of the Chamber of Representatives of Belgium Prime Minister of Belgium
Member of the Chamber of Representatives of Belgium and Prime Minister of Belgium were the positions occupied by that person
member of the Chamber of Representatives of Belgium Prime Minister of Belgium
action filter_type
action find
entity Joseph Lebeau
relation position held
type occupation
['male', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Joseph_Lebeau property:position_held ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q468104
P19
Q13539802
USER
Where was that person born ?
(Q15705021,P19,c(Q13539802)) (Q213107,P19,c(Q13539802))
action filter_type
action find
entity Q468104
relation P19
type Q13539802
['Q15705021', 'P19', {'concept': 'Q13539802'}] ['Q213107', 'P19', {'concept': 'Q13539802'}]
SELECT DISTINCT ?o WHERE { resource:Q468104 property:P19 ?o . ?o rdf:type ontology:Q13539802 }
Joseph Lebeau
action filter_type
action find
entity Joseph Lebeau
relation place of birth
type place with town rights and privileges
['member of the Chamber of Representatives of Belgium', 'place of birth', {'concept': 'place with town rights and privileges'}] ['Prime Minister of Belgium', 'place of birth', {'concept': 'place with town rights and privileges'}]
SELECT DISTINCT ?o WHERE { resource:Joseph_Lebeau property:place_of_birth ?o . ?o rdf:type ontology:place_with_town_rights_and_privileges }
[]
place with town rights and privileges
Q207095
SYSTEM
Huy
Q207095
(Q15705021,P19,c(Q13539802)) (Q213107,P19,c(Q13539802))
action filter_type
action find
entity Q468104
relation P19
type Q13539802
That person was born in [ANSWER]
['Q15705021', 'P19', {'concept': 'Q13539802'}] ['Q213107', 'P19', {'concept': 'Q13539802'}]
SELECT DISTINCT ?o WHERE { resource:Q468104 property:P19 ?o . ?o rdf:type ontology:Q13539802 }
Huy
That person was born in Huy
Huy
action filter_type
action find
entity Joseph Lebeau
relation place of birth
type place with town rights and privileges
['member of the Chamber of Representatives of Belgium', 'place of birth', {'concept': 'place with town rights and privileges'}] ['Prime Minister of Belgium', 'place of birth', {'concept': 'place with town rights and privileges'}]
SELECT DISTINCT ?o WHERE { resource:Joseph_Lebeau property:place_of_birth ?o . ?o rdf:type ontology:place_with_town_rights_and_privileges }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q468104
P106
Q12737077
USER
What are the job of Joseph Lebeau ?
(Q468104,P106,c(Q12737077))
action filter_type
action find
entity Q468104
relation P106
type Q12737077
['Q468104', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q468104 property:P106 ?y }
Joseph Lebeau
action filter_type
action find
entity Joseph Lebeau
relation occupation
type occupation
['Joseph Lebeau', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Joseph_Lebeau property:occupation ?y }
[]
occupation
Q1930187 Q82955
SYSTEM
journalist, politician
Q1930187 Q82955
(Q468104,P106,c(Q12737077))
action filter_type
action find
entity Q468104
relation P106
type Q12737077
The job of Joseph Lebeau are a [ANSWERS]
['Q468104', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q468104 property:P106 ?y }
journalist politician
The job of Joseph Lebeau are a journalist and politician
journalist politician
action filter_type
action find
entity Joseph Lebeau
relation occupation
type occupation
['Joseph Lebeau', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Joseph_Lebeau property:occupation ?y }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q468104
Q28640
USER
And which profession?
(Q468104,P106,c(Q28640))
action filter_type
action find
entity Q468104
relation P106
type Q28640
['Q468104', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?c WHERE { resource:Q468104 property:P106 ?c . ?c rdf:type ontology:Q28640 }
Joseph Lebeau
action filter_type
action find
entity Joseph Lebeau
relation occupation
type profession
['Joseph Lebeau', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?c WHERE { resource:Joseph_Lebeau property:occupation ?c . ?c rdf:type ontology:profession }
[]
profession
Q40348
SYSTEM
lawyer
Q40348
(Q468104,P106,c(Q28640))
action filter_type
action find
entity Q468104
relation P106
type Q28640
[ANSWER]
['Q468104', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?c WHERE { resource:Q468104 property:P106 ?c . ?c rdf:type ontology:Q28640 }
lawyer
lawyer
action filter_type
action find
entity Joseph Lebeau
relation occupation
type profession
['Joseph Lebeau', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?c WHERE { resource:Joseph_Lebeau property:occupation ?c . ?c rdf:type ontology:profession }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12737077 Q2342494 Q732577
USER
Which occupations were the main subjects of max number of collectables and publications 's work ?
(c(Q2342494)|c(Q732577),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
[[{'concept': 'Q2342494'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?t ) { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?a ) WHERE { { ?m property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q2342494 } UNION { ?y rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q732577 . ?m property:P921 ?y } } GROUP BY ?y } } . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?s ) WHERE { { ?v property:P921 ?i . ?i rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q2342494 } UNION { ?v rdf:type ontology:Q732577 . ?i rdf:type ontology:Q12737077 . ?v property:P921 ?i } } GROUP BY ?i } . FILTER ( ?s = ?t ) }
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
[[{'concept': 'collectable'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?t ) { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?a ) WHERE { { ?m property:main_subject ?y . ?y rdf:type ontology:occupation . ?m rdf:type ontology:collectable } UNION { ?y rdf:type ontology:occupation . ?m rdf:type ontology:publication . ?m property:main_subject ?y } } GROUP BY ?y } } . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?s ) WHERE { { ?v property:main_subject ?i . ?i rdf:type ontology:occupation . ?v rdf:type ontology:collectable } UNION { ?v rdf:type ontology:publication . ?i rdf:type ontology:occupation . ?v property:main_subject ?i } } GROUP BY ?i } . FILTER ( ?s = ?t ) }
[]
occupation collectable publication
Q16746569
SYSTEM
high school student
Q16746569
(c(Q2342494)|c(Q732577),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
The [ANSWER] was the main subjects of max number of collectables and publications 's work
[[{'concept': 'Q2342494'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?t ) { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?a ) WHERE { { ?m property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q2342494 } UNION { ?y rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q732577 . ?m property:P921 ?y } } GROUP BY ?y } } . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?s ) WHERE { { ?v property:P921 ?i . ?i rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q2342494 } UNION { ?v rdf:type ontology:Q732577 . ?i rdf:type ontology:Q12737077 . ?v property:P921 ?i } } GROUP BY ?i } . FILTER ( ?s = ?t ) }
high school student
The high school student was the main subjects of max number of collectables and publications 's work
high school student
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
[[{'concept': 'collectable'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?t ) { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?a ) WHERE { { ?m property:main_subject ?y . ?y rdf:type ontology:occupation . ?m rdf:type ontology:collectable } UNION { ?y rdf:type ontology:occupation . ?m rdf:type ontology:publication . ?m property:main_subject ?y } } GROUP BY ?y } } . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?s ) WHERE { { ?v property:main_subject ?i . ?i rdf:type ontology:occupation . ?v rdf:type ontology:collectable } UNION { ?v rdf:type ontology:publication . ?i rdf:type ontology:occupation . ?v property:main_subject ?i } } GROUP BY ?i } . FILTER ( ?s = ?t ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q40348
P417
Q502895
USER
How many people are the names of person who are the patron saints of lawyer ?
(Q40348,P417,c(Q502895))
action count
action filter_type
action find
entity Q40348
relation P417
type Q502895
['Q40348', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Q40348 property:P417 ?w . ?w rdf:type ontology:Q502895 }
lawyer
action count
action filter_type
action find
entity lawyer
relation patron saint
type common name
['lawyer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:lawyer property:patron_saint ?w . ?w rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q179718 Q358325
(Q40348,P417,c(Q502895))
action count
action filter_type
action find
entity Q40348
relation P417
type Q502895
[ANSWER]
['Q40348', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Q40348 property:P417 ?w . ?w rdf:type ontology:Q502895 }
Catherine of Alexandria Ivo of Kermartin
2
action count
action filter_type
action find
entity lawyer
relation patron saint
type common name
['lawyer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:lawyer property:patron_saint ?w . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q186360
Q502895
USER
And what about nurse?
(Q186360,P417,c(Q502895))
action count
action filter_type
action find
entity Q186360
relation P417
type Q502895
['Q186360', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { resource:Q186360 property:P417 ?r . ?r rdf:type ontology:Q502895 }
nurse
action count
action filter_type
action find
entity nurse
relation patron saint
type common name
['nurse', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { resource:nurse property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
common name
SYSTEM
5
(Q186360,P417,c(Q502895))
action count
action filter_type
action find
entity Q186360
relation P417
type Q502895
[ANSWER]
['Q186360', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { resource:Q186360 property:P417 ?r . ?r rdf:type ontology:Q502895 }
5
action count
action filter_type
action find
entity nurse
relation patron saint
type common name
['nurse', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { resource:nurse property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6165368 Q468104
P27
Q15617994
USER
Which administrative territories do Joseph Lebeau or Víctor Abelenda belong to ?
OR((Q468104,P27,c(Q15617994)), (Q6165368,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q468104
relation P27
action find
entity Q6165368
relation P27
type Q15617994
{'OR': [['Q468104', 'P27', {'concept': 'Q15617994'}], ['Q6165368', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q6165368 property:P27 ?d } UNION { resource:Q468104 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
Víctor Abelenda Joseph Lebeau
action filter_type
action union
action find
entity Joseph Lebeau
relation country of citizenship
action find
entity Víctor Abelenda
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Joseph Lebeau', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Víctor Abelenda', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Víctor_Abelenda property:country_of_citizenship ?d } UNION { resource:Joseph_Lebeau property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q77 Q31
SYSTEM
Uruguay, Belgium
Q77 Q31
OR((Q468104,P27,c(Q15617994)), (Q6165368,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q468104
relation P27
action find
entity Q6165368
relation P27
type Q15617994
Joseph Lebeau or Víctor Abelenda belong to [ANSWERS]
{'OR': [['Q468104', 'P27', {'concept': 'Q15617994'}], ['Q6165368', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q6165368 property:P27 ?d } UNION { resource:Q468104 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
Uruguay Belgium
Joseph Lebeau or Víctor Abelenda belong to Uruguay and Belgium
Uruguay Belgium
action filter_type
action union
action find
entity Joseph Lebeau
relation country of citizenship
action find
entity Víctor Abelenda
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Joseph Lebeau', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Víctor Abelenda', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Víctor_Abelenda property:country_of_citizenship ?d } UNION { resource:Joseph_Lebeau property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]