Simple Question (Direct)
Simple Question
Q1365847
P106
Q12737077
USER
Which occupation is the profession of Wilder D. Foster ?
(Q1365847,P106,c(Q12737077))
action filter_type
action find
entity Q1365847
relation P106
type Q12737077
['Q1365847', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q1365847 property:P106 ?f }
Wilder D. Foster
action filter_type
action find
entity Wilder D. Foster
relation occupation
type occupation
['Wilder D. Foster', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Wilder_D._Foster property:occupation ?f }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1365847,P106,c(Q12737077))
action filter_type
action find
entity Q1365847
relation P106
type Q12737077
So [ANSWER] is the profession of Wilder D. Foster
['Q1365847', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q1365847 property:P106 ?f }
politician
So politician is the profession of Wilder D. Foster
politician
action filter_type
action find
entity Wilder D. Foster
relation occupation
type occupation
['Wilder D. Foster', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Wilder_D._Foster property:occupation ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1365847
P39
Q12737077
USER
What were the positions for which Wilder D. Foster were appointed ?
(Q1365847,P39,c(Q12737077))
action filter_type
action find
entity Q1365847
relation P39
type Q12737077
['Q1365847', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1365847 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Wilder D. Foster
action filter_type
action find
entity Wilder D. Foster
relation position held
type occupation
['Wilder D. Foster', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Wilder_D._Foster property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q13218630 Q18675883
SYSTEM
United States representative, member of the State Senate of Michigan
Q13218630 Q18675883
(Q1365847,P39,c(Q12737077))
action filter_type
action find
entity Q1365847
relation P39
type Q12737077
What The [ANSWERS]
['Q1365847', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1365847 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
United States representative member of the State Senate of Michigan
What The United States representative and member of the State Senate of Michigan
United States representative member of the State Senate of Michigan
action filter_type
action find
entity Wilder D. Foster
relation position held
type occupation
['Wilder D. Foster', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Wilder_D._Foster property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1365847
P21
Q290
USER
What is the sex of Wilder D. Foster ?
(Q1365847,P21,c(Q290))
action filter_type
action find
entity Q1365847
relation P21
type Q290
['Q1365847', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q1365847 property:P21 ?p }
Wilder D. Foster
action filter_type
action find
entity Wilder D. Foster
relation gender
type sex
['Wilder D. Foster', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Wilder_D._Foster property:gender ?p }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1365847,P21,c(Q290))
action filter_type
action find
entity Q1365847
relation P21
type Q290
The sex of Wilder D . Foster is the [ANSWER]
['Q1365847', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q1365847 property:P21 ?p }
male
The sex of Wilder D . Foster is the male
male
action filter_type
action find
entity Wilder D. Foster
relation gender
type sex
['Wilder D. Foster', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Wilder_D._Foster property:gender ?p }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q328338
Q290
USER
And what about Jennifer Weiner?
(Q328338,P21,c(Q290))
action filter_type
action find
entity Q328338
relation P21
type Q290
['Q328338', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q328338 property:P21 ?b . ?b rdf:type ontology:Q290 }
Jennifer Weiner
action filter_type
action find
entity Jennifer Weiner
relation gender
type sex
['Jennifer Weiner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Jennifer_Weiner property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q328338,P21,c(Q290))
action filter_type
action find
entity Q328338
relation P21
type Q290
[ANSWER]
['Q328338', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q328338 property:P21 ?b . ?b rdf:type ontology:Q290 }
female
female
action filter_type
action find
entity Jennifer Weiner
relation gender
type sex
['Jennifer Weiner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Jennifer_Weiner property:gender ?b . ?b rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q340169 Q3305213
USER
Which occupations are depicted in max number of medias or paintings ?
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?f ) WHERE { VALUES ( ?w ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } . ?v rdf:type ?w } GROUP BY ?l } . FILTER ( ?f = ?h ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:media ) ( ontology:painting ) } } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?f ) WHERE { VALUES ( ?w ) { ( ontology:painting ) ( ontology:media ) } . ?v rdf:type ?w } GROUP BY ?l } . FILTER ( ?f = ?h ) }
[]
occupation media painting
Q4991371
SYSTEM
soldier
Q4991371
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
[ANSWER] is depicted in max number of medias or paintings
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?f ) WHERE { VALUES ( ?w ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } . ?v rdf:type ?w } GROUP BY ?l } . FILTER ( ?f = ?h ) }
soldier
Soldier is depicted in max number of medias or paintings
soldier
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:media ) ( ontology:painting ) } } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?f ) WHERE { VALUES ( ?w ) { ( ontology:painting ) ( ontology:media ) } . ?v rdf:type ?w } GROUP BY ?l } . FILTER ( ?f = ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q177220
P101
Q502895
USER
Which people have specialisation in singer ?
(c(Q502895),P101,Q177220)
action filter_type
action find_reverse
entity Q177220
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q177220']
SELECT DISTINCT ?p WHERE { ?p property:P101 resource:Q177220 . ?p rdf:type ontology:Q502895 }
singer
action filter_type
action find_reverse
entity singer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'singer']
SELECT DISTINCT ?p WHERE { ?p property:field_of_work resource:singer . ?p rdf:type ontology:common_name }
[]
common name
Q738505 Q5957599 Q6024866
SYSTEM
Renan Luce, Hamid Jebelli, Indila
Q738505 Q6024866 Q910761 Q5957599
(c(Q502895),P101,Q177220)
action filter_type
action find_reverse
entity Q177220
relation P101
type Q502895
[ANSWERS] have specialisation in singer
[{'concept': 'Q502895'}, 'P101', 'Q177220']
SELECT DISTINCT ?p WHERE { ?p property:P101 resource:Q177220 . ?p rdf:type ontology:Q502895 }
Renan Luce Indila Mac Davis Hamid Jebelli
Renan Luce, Hamid Jebelli and Indila have specialisation in singer
Renan Luce Hamid Jebelli Indila
action filter_type
action find_reverse
entity singer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'singer']
SELECT DISTINCT ?p WHERE { ?p property:field_of_work resource:singer . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q738505 Q5957599 Q6024866
P106
Q12737077
USER
What are the job of Renan Luce, Hamid Jebelli and Indila ?
(Q738505,P106,c(Q12737077)) (Q5957599,P106,c(Q12737077)) (Q6024866,P106,c(Q12737077))
action union
action filter_type
action find
entity Q738505
relation P106
type Q12737077
action filter_type
action find
entity Q5957599
relation P106
type Q12737077
action filter_type
action find
entity Q6024866
relation P106
type Q12737077
['Q738505', 'P106', {'concept': 'Q12737077'}] ['Q5957599', 'P106', {'concept': 'Q12737077'}] ['Q6024866', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { { resource:Q738505 property:P106 ?n . ?n rdf:type ontology:Q12737077 } UNION { ?n rdf:type ontology:Q12737077 . resource:Q5957599 property:P106 ?n } }
Renan Luce Hamid Jebelli Indila
action union
action filter_type
action find
entity Renan Luce
relation occupation
type occupation
action filter_type
action find
entity Hamid Jebelli
relation occupation
type occupation
action filter_type
action find
entity Indila
relation occupation
type occupation
['Renan Luce', 'occupation', {'concept': 'occupation'}] ['Hamid Jebelli', 'occupation', {'concept': 'occupation'}] ['Indila', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { { resource:Renan_Luce property:occupation ?n . ?n rdf:type ontology:occupation } UNION { ?n rdf:type ontology:occupation . resource:Hamid_Jebelli property:occupation ?n } }
[]
occupation
Q177220 Q3455803 Q177220
SYSTEM
director for 2nd, singer for 1st, 3rd
Q488205 Q177220 Q706364 Q3455803 Q177220 Q33999 Q36180 Q753110 Q488205 Q177220
(Q738505,P106,c(Q12737077)) (Q5957599,P106,c(Q12737077)) (Q6024866,P106,c(Q12737077))
action union
action filter_type
action find
entity Q738505
relation P106
type Q12737077
action filter_type
action find
entity Q5957599
relation P106
type Q12737077
action filter_type
action find
entity Q6024866
relation P106
type Q12737077
[ANSWERS]
['Q738505', 'P106', {'concept': 'Q12737077'}] ['Q5957599', 'P106', {'concept': 'Q12737077'}] ['Q6024866', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { { resource:Q738505 property:P106 ?n . ?n rdf:type ontology:Q12737077 } UNION { ?n rdf:type ontology:Q12737077 . resource:Q5957599 property:P106 ?n } }
singer-songwriter singer art director director singer actor writer songwriter singer-songwriter singer
The job of Renan Luce , Hamid Jebelli and Indila are the singer, director and singer
singer director singer
action union
action filter_type
action find
entity Renan Luce
relation occupation
type occupation
action filter_type
action find
entity Hamid Jebelli
relation occupation
type occupation
action filter_type
action find
entity Indila
relation occupation
type occupation
['Renan Luce', 'occupation', {'concept': 'occupation'}] ['Hamid Jebelli', 'occupation', {'concept': 'occupation'}] ['Indila', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { { resource:Renan_Luce property:occupation ?n . ?n rdf:type ontology:occupation } UNION { ?n rdf:type ontology:occupation . resource:Hamid_Jebelli property:occupation ?n } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6024866
P175
Q7725634
USER
Who performed Indila ?
(c(Q7725634),P175,Q6024866)
action filter_type
action find_reverse
entity Q6024866
relation P175
type Q7725634
[{'concept': 'Q7725634'}, 'P175', 'Q6024866']
SELECT DISTINCT ?p WHERE { ?p property:P175 resource:Q6024866 . ?p rdf:type ontology:Q7725634 }
Indila
action filter_type
action find_reverse
entity Indila
relation performer
type literary work
[{'concept': 'literary work'}, 'performer', 'Indila']
SELECT DISTINCT ?p WHERE { ?p property:performer resource:Indila . ?p rdf:type ontology:literary_work }
[]
literary work
Q15640702
SYSTEM
Dernière Danse
Q15640702
(c(Q7725634),P175,Q6024866)
action filter_type
action find_reverse
entity Q6024866
relation P175
type Q7725634
[ANSWER] performed Indila
[{'concept': 'Q7725634'}, 'P175', 'Q6024866']
SELECT DISTINCT ?p WHERE { ?p property:P175 resource:Q6024866 . ?p rdf:type ontology:Q7725634 }
Dernière Danse
Dernière Danse performed Indila
Dernière Danse
action filter_type
action find_reverse
entity Indila
relation performer
type literary work
[{'concept': 'literary work'}, 'performer', 'Indila']
SELECT DISTINCT ?p WHERE { ?p property:performer resource:Indila . ?p rdf:type ontology:literary_work }
[]