Simple Question (Direct)
Simple Question
Q332357
P21
Q290
USER
Which sex does Mark Steyn possess ?
(Q332357,P21,c(Q290))
action filter_type
action find
entity Q332357
relation P21
type Q290
['Q332357', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q332357 property:P21 ?t . ?t rdf:type ontology:Q290 }
Mark Steyn
action filter_type
action find
entity Mark Steyn
relation gender
type sex
['Mark Steyn', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Mark_Steyn property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q332357,P21,c(Q290))
action filter_type
action find
entity Q332357
relation P21
type Q290
Mark Steyn possesses un [ANSWER]
['Q332357', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q332357 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
Mark Steyn possesses un male
male
action filter_type
action find
entity Mark Steyn
relation gender
type sex
['Mark Steyn', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Mark_Steyn property:gender ?t . ?t rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q332357
P106
Q12737077
USER
What are the professions of that person ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q332357
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q332357 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Mark Steyn
action filter_type
action find
entity Mark Steyn
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Mark_Steyn property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q1930187 Q1350157 Q36180
SYSTEM
journalist, music critic, writer
Q1930187 Q1350157 Q1642960 Q36180
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q332357
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q332357 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
journalist music critic pundit writer
The professions of that person are journalist, music critic and writer
journalist music critic writer
action filter_type
action find
entity Mark Steyn
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Mark_Steyn property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P425
Q12737077 Q9332
USER
How many occupations or behaviors have that occupation as thier associated field of occupation ?
(Q1930187,P425,c(Q12737077)) (Q1930187,P425,c(Q9332)) (Q1930187,P425,c(Q12737077)) (Q1930187,P425,c(Q9332)) (Q1350157,P425,c(Q12737077)) (Q1350157,P425,c(Q9332)) (Q36180,P425,c(Q12737077)) (Q36180,P425,c(Q9332))
['Q1930187', 'P425', {'concept': 'Q12737077'}] ['Q1930187', 'P425', {'concept': 'Q9332'}] ['Q1930187', 'P425', {'concept': 'Q12737077'}] ['Q1930187', 'P425', {'concept': 'Q9332'}] ['Q1350157', 'P425', {'concept': 'Q12737077'}] ['Q1350157', 'P425', {'concept': 'Q9332'}] ['Q36180', 'P425', {'concept': 'Q12737077'}] ['Q36180', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1930187 property:P425 ?z } UNION { resource:Q1930187 property:P425 ?y } UNION { resource:Q1930187 property:P425 ?z } UNION { resource:Q1930187 property:P425 ?y } UNION { resource:Q1350157 property:P425 ?z } UNION { resource:Q1350157 property:P425 ?y } UNION { resource:Q36180 property:P425 ?z } UNION { resource:Q36180 property:P425 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q9332 }
['journalist', 'field of this occupation', {'concept': 'occupation'}] ['journalist', 'field of this occupation', {'concept': 'behavior'}] ['journalist', 'field of this occupation', {'concept': 'occupation'}] ['journalist', 'field of this occupation', {'concept': 'behavior'}] ['music critic', 'field of this occupation', {'concept': 'occupation'}] ['music critic', 'field of this occupation', {'concept': 'behavior'}] ['writer', 'field of this occupation', {'concept': 'occupation'}] ['writer', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:journalist property:field_of_this_occupation ?z } UNION { resource:journalist property:field_of_this_occupation ?y } UNION { resource:journalist property:field_of_this_occupation ?z } UNION { resource:journalist property:field_of_this_occupation ?y } UNION { resource:music_critic property:field_of_this_occupation ?z } UNION { resource:music_critic property:field_of_this_occupation ?y } UNION { resource:writer property:field_of_this_occupation ?z } UNION { resource:writer property:field_of_this_occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:behavior }
[]
occupation behavior
Quantitative|Count|Mult. entity type|Clarification
Q1930187
SYSTEM
Did you mean journalist ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1930187 property:P425 ?z } UNION { resource:Q1930187 property:P425 ?y } UNION { resource:Q1930187 property:P425 ?z } UNION { resource:Q1930187 property:P425 ?y } UNION { resource:Q1350157 property:P425 ?z } UNION { resource:Q1350157 property:P425 ?y } UNION { resource:Q36180 property:P425 ?z } UNION { resource:Q36180 property:P425 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q9332 }
Did you mean journalist ?
journalist
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:journalist property:field_of_this_occupation ?z } UNION { resource:journalist property:field_of_this_occupation ?y } UNION { resource:journalist property:field_of_this_occupation ?z } UNION { resource:journalist property:field_of_this_occupation ?y } UNION { resource:music_critic property:field_of_this_occupation ?z } UNION { resource:music_critic property:field_of_this_occupation ?y } UNION { resource:writer property:field_of_this_occupation ?z } UNION { resource:writer property:field_of_this_occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:behavior }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1930187,P425,c(Q12737077)) (Q1930187,P425,c(Q9332)) (Q1930187,P425,c(Q12737077)) (Q1930187,P425,c(Q9332)) (Q1350157,P425,c(Q12737077)) (Q1350157,P425,c(Q9332)) (Q36180,P425,c(Q12737077)) (Q36180,P425,c(Q9332))
['Q1930187', 'P425', {'concept': 'Q12737077'}] ['Q1930187', 'P425', {'concept': 'Q9332'}] ['Q1930187', 'P425', {'concept': 'Q12737077'}] ['Q1930187', 'P425', {'concept': 'Q9332'}] ['Q1350157', 'P425', {'concept': 'Q12737077'}] ['Q1350157', 'P425', {'concept': 'Q9332'}] ['Q36180', 'P425', {'concept': 'Q12737077'}] ['Q36180', 'P425', {'concept': 'Q9332'}]
['journalist', 'field of this occupation', {'concept': 'occupation'}] ['journalist', 'field of this occupation', {'concept': 'behavior'}] ['journalist', 'field of this occupation', {'concept': 'occupation'}] ['journalist', 'field of this occupation', {'concept': 'behavior'}] ['music critic', 'field of this occupation', {'concept': 'occupation'}] ['music critic', 'field of this occupation', {'concept': 'behavior'}] ['writer', 'field of this occupation', {'concept': 'occupation'}] ['writer', 'field of this occupation', {'concept': 'behavior'}]
[]
SYSTEM
2
Q11030 Q36180
(Q1930187,P425,c(Q12737077)) (Q1930187,P425,c(Q9332)) (Q1930187,P425,c(Q12737077)) (Q1930187,P425,c(Q9332)) (Q1350157,P425,c(Q12737077)) (Q1350157,P425,c(Q9332)) (Q36180,P425,c(Q12737077)) (Q36180,P425,c(Q9332))
[ANSWER]
['Q1930187', 'P425', {'concept': 'Q12737077'}] ['Q1930187', 'P425', {'concept': 'Q9332'}] ['Q1930187', 'P425', {'concept': 'Q12737077'}] ['Q1930187', 'P425', {'concept': 'Q9332'}] ['Q1350157', 'P425', {'concept': 'Q12737077'}] ['Q1350157', 'P425', {'concept': 'Q9332'}] ['Q36180', 'P425', {'concept': 'Q12737077'}] ['Q36180', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1930187 property:P425 ?z } UNION { resource:Q1930187 property:P425 ?y } UNION { resource:Q1930187 property:P425 ?z } UNION { resource:Q1930187 property:P425 ?y } UNION { resource:Q1350157 property:P425 ?z } UNION { resource:Q1350157 property:P425 ?y } UNION { resource:Q36180 property:P425 ?z } UNION { resource:Q36180 property:P425 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q9332 }
journalism writer
2
['journalist', 'field of this occupation', {'concept': 'occupation'}] ['journalist', 'field of this occupation', {'concept': 'behavior'}] ['journalist', 'field of this occupation', {'concept': 'occupation'}] ['journalist', 'field of this occupation', {'concept': 'behavior'}] ['music critic', 'field of this occupation', {'concept': 'occupation'}] ['music critic', 'field of this occupation', {'concept': 'behavior'}] ['writer', 'field of this occupation', {'concept': 'occupation'}] ['writer', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:journalist property:field_of_this_occupation ?z } UNION { resource:journalist property:field_of_this_occupation ?y } UNION { resource:journalist property:field_of_this_occupation ?z } UNION { resource:journalist property:field_of_this_occupation ?y } UNION { resource:music_critic property:field_of_this_occupation ?z } UNION { resource:music_critic property:field_of_this_occupation ?y } UNION { resource:writer property:field_of_this_occupation ?z } UNION { resource:writer property:field_of_this_occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:behavior }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36180 Q18347241
P106
Q502895
USER
How many people have career as writer and political commentator ?
(c(Q502895),P106,Q36180) (c(Q502895),P106,Q18347241)
action count
action intersection
action filter_type
action find_reverse
entity Q36180
relation P106
type Q502895
action filter_type
action find_reverse
entity Q18347241
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q36180'] [{'concept': 'Q502895'}, 'P106', 'Q18347241']
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:P106 resource:Q36180 . ?o rdf:type ontology:Q502895 . ?o rdf:type ontology:Q502895 . ?o property:P106 resource:Q18347241 }
writer political commentator
action count
action intersection
action filter_type
action find_reverse
entity writer
relation occupation
type common name
action filter_type
action find_reverse
entity political commentator
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'writer'] [{'concept': 'common name'}, 'occupation', 'political commentator']
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:occupation resource:writer . ?o rdf:type ontology:common_name . ?o rdf:type ontology:common_name . ?o property:occupation resource:political_commentator }
[]
common name
SYSTEM
3
Q4732872 Q1226328 Q10857728
(c(Q502895),P106,Q36180) (c(Q502895),P106,Q18347241)
action count
action intersection
action filter_type
action find_reverse
entity Q36180
relation P106
type Q502895
action filter_type
action find_reverse
entity Q18347241
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q36180'] [{'concept': 'Q502895'}, 'P106', 'Q18347241']
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:P106 resource:Q36180 . ?o rdf:type ontology:Q502895 . ?o rdf:type ontology:Q502895 . ?o property:P106 resource:Q18347241 }
Allister Sparks Dinesh D'Souza Zdeněk Velíšek
3
action count
action intersection
action filter_type
action find_reverse
entity writer
relation occupation
type common name
action filter_type
action find_reverse
entity political commentator
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'writer'] [{'concept': 'common name'}, 'occupation', 'political commentator']
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:occupation resource:writer . ?o rdf:type ontology:common_name . ?o rdf:type ontology:common_name . ?o property:occupation resource:political_commentator }
[]