Simple Question (Direct)
Simple Question
Q6913225
P106
Q12737077
USER
What is the profession of Morohoshi Sayaka ?
(Q6913225,P106,c(Q12737077))
action filter_type
action find
entity Q6913225
relation P106
type Q12737077
['Q6913225', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q6913225 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Morohoshi Sayaka
action filter_type
action find
entity Morohoshi Sayaka
relation occupation
type occupation
['Morohoshi Sayaka', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Morohoshi_Sayaka property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q1930187
SYSTEM
journalist
Q1930187
(Q6913225,P106,c(Q12737077))
action filter_type
action find
entity Q6913225
relation P106
type Q12737077
The profession of Morohoshi Sayaka is a [ANSWER]
['Q6913225', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q6913225 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
journalist
The profession of Morohoshi Sayaka is a journalist
journalist
action filter_type
action find
entity Morohoshi Sayaka
relation occupation
type occupation
['Morohoshi Sayaka', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Morohoshi_Sayaka property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6913225
P21
Q290
USER
Which sex does Morohoshi Sayaka belong to ?
(Q6913225,P21,c(Q290))
action filter_type
action find
entity Q6913225
relation P21
type Q290
['Q6913225', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q6913225 property:P21 ?j }
Morohoshi Sayaka
action filter_type
action find
entity Morohoshi Sayaka
relation gender
type sex
['Morohoshi Sayaka', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Morohoshi_Sayaka property:gender ?j }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6913225,P21,c(Q290))
action filter_type
action find
entity Q6913225
relation P21
type Q290
Morohoshi Sayaka belongs to [ANSWER]
['Q6913225', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q6913225 property:P21 ?j }
male
Morohoshi Sayaka belongs to male
male
action filter_type
action find
entity Morohoshi Sayaka
relation gender
type sex
['Morohoshi Sayaka', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Morohoshi_Sayaka property:gender ?j }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q172531
Q290
USER
And how about Bertil Roos?
(Q172531,P21,c(Q290))
action filter_type
action find
entity Q172531
relation P21
type Q290
['Q172531', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q172531 property:P21 ?d . ?d rdf:type ontology:Q290 }
Bertil Roos
action filter_type
action find
entity Bertil Roos
relation gender
type sex
['Bertil Roos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Bertil_Roos property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q172531,P21,c(Q290))
action filter_type
action find
entity Q172531
relation P21
type Q290
[ANSWER]
['Q172531', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q172531 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Bertil Roos
relation gender
type sex
['Bertil Roos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Bertil_Roos property:gender ?d . ?d rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6581097
P21
Q20011627 Q23010327
USER
How many cattle breeds or groups of fictitious objects have male as the sex ?
(c(Q20011627),P21,Q6581097) (c(Q23010327),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q20011627
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q23010327
[{'concept': 'Q20011627'}, 'P21', 'Q6581097'] [{'concept': 'Q23010327'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { ?e rdf:type ontology:Q23010327 . ?e property:P21 resource:Q6581097 } UNION { ?e property:P21 resource:Q6581097 . ?e rdf:type ontology:Q20011627 } }
male
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type cattle breed
action filter_type
action find_reverse
entity male
relation gender
type group of fictitious objects
[{'concept': 'cattle breed'}, 'gender', 'male'] [{'concept': 'group of fictitious objects'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { ?e rdf:type ontology:group_of_fictitious_objects . ?e property:gender resource:male } UNION { ?e property:gender resource:male . ?e rdf:type ontology:cattle_breed } }
[]
cattle breed group of fictitious objects
SYSTEM
4
Q239422 Q17420031 Q2367710 Q26761619
(c(Q20011627),P21,Q6581097) (c(Q23010327),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q20011627
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q23010327
[ANSWER]
[{'concept': 'Q20011627'}, 'P21', 'Q6581097'] [{'concept': 'Q23010327'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { ?e rdf:type ontology:Q23010327 . ?e property:P21 resource:Q6581097 } UNION { ?e property:P21 resource:Q6581097 . ?e rdf:type ontology:Q20011627 } }
Hanoverhill Starbuck Jang's Men Twins Helicopter Pilot
4
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type cattle breed
action filter_type
action find_reverse
entity male
relation gender
type group of fictitious objects
[{'concept': 'cattle breed'}, 'gender', 'male'] [{'concept': 'group of fictitious objects'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { ?e rdf:type ontology:group_of_fictitious_objects . ?e property:gender resource:male } UNION { ?e property:gender resource:male . ?e rdf:type ontology:cattle_breed } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1930187
P106
Q95074 Q4894405
USER
How many fictional characters or journalism genres have career as journalist ?
(c(Q95074),P106,Q1930187) (c(Q4894405),P106,Q1930187)
action count
action union
action filter_type
action find_reverse
entity Q1930187
relation P106
type Q95074
action filter_type
action find_reverse
entity Q1930187
relation P106
type Q4894405
[{'concept': 'Q95074'}, 'P106', 'Q1930187'] [{'concept': 'Q4894405'}, 'P106', 'Q1930187']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { { ?z property:P106 resource:Q1930187 . ?z rdf:type ontology:Q95074 } UNION { ?z rdf:type ontology:Q4894405 . ?z property:P106 resource:Q1930187 } }
journalist
action count
action union
action filter_type
action find_reverse
entity journalist
relation occupation
type fictional character
action filter_type
action find_reverse
entity journalist
relation occupation
type journalism genre
[{'concept': 'fictional character'}, 'occupation', 'journalist'] [{'concept': 'journalism genre'}, 'occupation', 'journalist']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { { ?z property:occupation resource:journalist . ?z rdf:type ontology:fictional_character } UNION { ?z rdf:type ontology:journalism_genre . ?z property:occupation resource:journalist } }
[]
fictional character journalism genre
SYSTEM
11
Q23000758 Q23011568 Q23003776 Q23025185 Q23011599 Q17075849 Q23012330 Q23000261 Q5246832 Q23047422 Q23011464
(c(Q95074),P106,Q1930187) (c(Q4894405),P106,Q1930187)
action count
action union
action filter_type
action find_reverse
entity Q1930187
relation P106
type Q95074
action filter_type
action find_reverse
entity Q1930187
relation P106
type Q4894405
[ANSWER]
[{'concept': 'Q95074'}, 'P106', 'Q1930187'] [{'concept': 'Q4894405'}, 'P106', 'Q1930187']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { { ?z property:P106 resource:Q1930187 . ?z rdf:type ontology:Q95074 } UNION { ?z rdf:type ontology:Q4894405 . ?z property:P106 resource:Q1930187 } }
Chris Steve Katie Witt Mark O'Donnell Sondra Danny Concannon Arthur Leeds Bobbi Dear Deidre Phil Jonathan
11
action count
action union
action filter_type
action find_reverse
entity journalist
relation occupation
type fictional character
action filter_type
action find_reverse
entity journalist
relation occupation
type journalism genre
[{'concept': 'fictional character'}, 'occupation', 'journalist'] [{'concept': 'journalism genre'}, 'occupation', 'journalist']
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { { ?z property:occupation resource:journalist . ?z rdf:type ontology:fictional_character } UNION { ?z rdf:type ontology:journalism_genre . ?z property:occupation resource:journalist } }
[]