Simple Question (Direct)
Simple Question
Q548670
P106
Q12737077
USER
What does Crezdon Butler do for a living ?
(Q548670,P106,c(Q12737077))
action filter_type
action find
entity Q548670
relation P106
type Q12737077
['Q548670', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q548670 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Crezdon Butler
action filter_type
action find
entity Crezdon Butler
relation occupation
type occupation
['Crezdon Butler', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Crezdon_Butler property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
(Q548670,P106,c(Q12737077))
action filter_type
action find
entity Q548670
relation P106
type Q12737077
Crezdon Butler does an [ANSWER] for a living
['Q548670', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q548670 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
American football player
Crezdon Butler does an American football player for a living
American football player
action filter_type
action find
entity Crezdon Butler
relation occupation
type occupation
['Crezdon Butler', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Crezdon_Butler property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q548670
P641
Q349
USER
Which sport did that person participate in ?
(Q19204627,P641,c(Q349))
action filter_type
action find
entity Q548670
relation P641
type Q349
['Q19204627', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q548670 property:P641 ?v . ?v rdf:type ontology:Q349 }
Crezdon Butler
action filter_type
action find
entity Crezdon Butler
relation sport
type sport
['American football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Crezdon_Butler property:sport ?v . ?v rdf:type ontology:sport }
[]
sport
Q41323
SYSTEM
American football
Q41323
(Q19204627,P641,c(Q349))
action filter_type
action find
entity Q548670
relation P641
type Q349
That person participated in [ANSWER]
['Q19204627', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q548670 property:P641 ?v . ?v rdf:type ontology:Q349 }
American football
That person participated in American football
American football
action filter_type
action find
entity Crezdon Butler
relation sport
type sport
['American football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Crezdon_Butler property:sport ?v . ?v rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q432386
P180
Q12737077 Q3305213 Q386724
USER
How many occupations are depicted in more number of paintings or works than preacher ?
(c(Q3305213)|c(Q386724),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q432386
relation P180
type Q3305213
type Q386724
[[{'concept': 'Q3305213'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?n WHERE { { ?g property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q3305213 } UNION { ?g property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q386724 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P180 resource:Q432386 . { { ?c rdf:type ontology:Q3305213 } UNION { ?c rdf:type ontology:Q386724 } } } } . FILTER ( ?z > ?d ) }
preacher
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity preacher
relation depicts
type painting
type work
[[{'concept': 'painting'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?n WHERE { { ?g property:depicts ?n . ?n rdf:type ontology:occupation . ?g rdf:type ontology:painting } UNION { ?g property:depicts ?n . ?n rdf:type ontology:occupation . ?g rdf:type ontology:work } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:depicts resource:preacher . { { ?c rdf:type ontology:painting } UNION { ?c rdf:type ontology:work } } } } . FILTER ( ?z > ?d ) }
[]
occupation painting work
SYSTEM
38
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q12097 Q12059906 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q54128 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100
(c(Q3305213)|c(Q386724),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q432386
relation P180
type Q3305213
type Q386724
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?n WHERE { { ?g property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q3305213 } UNION { ?g property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q386724 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P180 resource:Q432386 . { { ?c rdf:type ontology:Q3305213 } UNION { ?c rdf:type ontology:Q386724 } } } } . FILTER ( ?z > ?d ) }
farmer vaquero lumberjack shepherd violinist religious servant detective pianist artist merchant mandolinist tax collector painter monk king herder trapper tennis player scrivener soldier Catholic priest chess player domestic worker equestrian abbot executioner dancer maid picador peasant fisherman musician poet draughtsperson sculptor construction worker priest art model
38
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity preacher
relation depicts
type painting
type work
[[{'concept': 'painting'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?n WHERE { { ?g property:depicts ?n . ?n rdf:type ontology:occupation . ?g rdf:type ontology:painting } UNION { ?g property:depicts ?n . ?n rdf:type ontology:occupation . ?g rdf:type ontology:work } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:depicts resource:preacher . { { ?c rdf:type ontology:painting } UNION { ?c rdf:type ontology:work } } } } . FILTER ( ?z > ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q39631
P180
Q12737077 Q3305213 Q386724
USER
And what about physician?
(c(Q3305213)|c(Q386724),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q39631
relation P180
type Q3305213
type Q386724
[[{'concept': 'Q3305213'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?l WHERE { VALUES ( ?y ) { ( ontology:Q3305213 ) ( ontology:Q386724 ) } . ?k rdf:type ?y } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:P180 resource:Q39631 . { { ?f rdf:type ontology:Q3305213 } UNION { ?f rdf:type ontology:Q386724 } } } } . FILTER ( ?n > ?a ) }
physician
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity physician
relation depicts
type painting
type work
[[{'concept': 'painting'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?l WHERE { VALUES ( ?y ) { ( ontology:painting ) ( ontology:work ) } . ?k rdf:type ?y } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:depicts resource:physician . { { ?f rdf:type ontology:painting } UNION { ?f rdf:type ontology:work } } } } . FILTER ( ?n > ?a ) }
[]
occupation painting work
SYSTEM
38
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q12097 Q12059906 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q54128 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100
(c(Q3305213)|c(Q386724),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q39631
relation P180
type Q3305213
type Q386724
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?l WHERE { VALUES ( ?y ) { ( ontology:Q3305213 ) ( ontology:Q386724 ) } . ?k rdf:type ?y } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:P180 resource:Q39631 . { { ?f rdf:type ontology:Q3305213 } UNION { ?f rdf:type ontology:Q386724 } } } } . FILTER ( ?n > ?a ) }
farmer vaquero lumberjack shepherd violinist religious servant detective pianist artist merchant mandolinist tax collector painter monk king herder trapper tennis player scrivener soldier Catholic priest chess player domestic worker equestrian abbot executioner dancer maid picador peasant fisherman musician poet draughtsperson sculptor construction worker priest art model
38
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity physician
relation depicts
type painting
type work
[[{'concept': 'painting'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?l WHERE { VALUES ( ?y ) { ( ontology:painting ) ( ontology:work ) } . ?k rdf:type ?y } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:depicts resource:physician . { { ?f rdf:type ontology:painting } UNION { ?f rdf:type ontology:work } } } } . FILTER ( ?n > ?a ) }
[]