Simple Question (Direct)
Simple Question
Q7150494
P641
Q349
USER
Which sport was Paul Emile Biyaga a part of ?
(Q7150494,P641,c(Q349))
action filter_type
action find
entity Q7150494
relation P641
type Q349
['Q7150494', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q7150494 property:P641 ?r . ?r rdf:type ontology:Q349 }
Paul Emile Biyaga
action filter_type
action find
entity Paul Emile Biyaga
relation sport
type sport
['Paul Emile Biyaga', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Paul_Emile_Biyaga property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7150494,P641,c(Q349))
action filter_type
action find
entity Q7150494
relation P641
type Q349
The [ANSWER] was Paul Emile Biyaga a part of
['Q7150494', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q7150494 property:P641 ?r . ?r rdf:type ontology:Q349 }
association football
The association football was Paul Emile Biyaga a part of
association football
action filter_type
action find
entity Paul Emile Biyaga
relation sport
type sport
['Paul Emile Biyaga', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Paul_Emile_Biyaga property:sport ?r . ?r rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7150494
P106
Q12737077
USER
What is the job of Paul Emile Biyaga ?
(Q7150494,P106,c(Q12737077))
action filter_type
action find
entity Q7150494
relation P106
type Q12737077
['Q7150494', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q7150494 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Paul Emile Biyaga
action filter_type
action find
entity Paul Emile Biyaga
relation occupation
type occupation
['Paul Emile Biyaga', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Paul_Emile_Biyaga property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q7150494,P106,c(Q12737077))
action filter_type
action find
entity Q7150494
relation P106
type Q12737077
The job of Paul Emile Biyaga is an [ANSWER]
['Q7150494', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q7150494 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
association football player
The job of Paul Emile Biyaga is an association football player
association football player
action filter_type
action find
entity Paul Emile Biyaga
relation occupation
type occupation
['Paul Emile Biyaga', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Paul_Emile_Biyaga property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1297365
Q12737077
USER
And what about Victor Shenderovich?
(Q1297365,P106,c(Q12737077))
action filter_type
action find
entity Q1297365
relation P106
type Q12737077
['Q1297365', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1297365 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Victor Shenderovich
action filter_type
action find
entity Victor Shenderovich
relation occupation
type occupation
['Victor Shenderovich', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Victor_Shenderovich property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q1930187 Q15978391 Q82955
SYSTEM
journalist, satirist, politician
Q15978391 Q82955 Q1930187 Q16287483 Q2722764
(Q1297365,P106,c(Q12737077))
action filter_type
action find
entity Q1297365
relation P106
type Q12737077
[ANSWERS]
['Q1297365', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1297365 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
satirist politician journalist opinion journalist radio personality
journalist satirist politician
action filter_type
action find
entity Victor Shenderovich
relation occupation
type occupation
['Victor Shenderovich', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Victor_Shenderovich property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q82955
P425
Q3769299
USER
Who is associated with the field of occupation that one ?
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?e WHERE { resource:Q82955 property:P425 ?e . ?e rdf:type ontology:Q3769299 }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?e WHERE { resource:politician property:field_of_this_occupation ?e . ?e rdf:type ontology:human_behaviour }
[]
human behaviour
Clarification for simple ques.
Q82955
SYSTEM
Did you mean politician ?
Q1930187 Q15978391 Q82955
(Q1930187,P425,c(Q3769299)) (Q15978391,P425,c(Q3769299)) (Q82955,P425,c(Q3769299))
[ANSWER]
['Q1930187', 'P425', {'concept': 'Q3769299'}] ['Q15978391', 'P425', {'concept': 'Q3769299'}] ['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?e WHERE { resource:Q82955 property:P425 ?e . ?e rdf:type ontology:Q3769299 }
journalist satirist politician
Did you mean politician ?
politician
['journalist', 'field of this occupation', {'concept': 'human behaviour'}] ['satirist', 'field of this occupation', {'concept': 'human behaviour'}] ['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?e WHERE { resource:politician property:field_of_this_occupation ?e . ?e rdf:type ontology:human_behaviour }
[]
Simple Question (Coreferenced)
USER
Yes
(Q82955,P425,c(Q3769299))
['Q82955', 'P425', {'concept': 'Q3769299'}]
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
[]
Q7163
SYSTEM
politics
Q7163
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
That [ANSWER] is associated with the field of occupation that one
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?e WHERE { resource:Q82955 property:P425 ?e . ?e rdf:type ontology:Q3769299 }
politics
That politics is associated with the field of occupation that one
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?e WHERE { resource:politician property:field_of_this_occupation ?e . ?e rdf:type ontology:human_behaviour }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q9299663 Q937857
P425 P641
Q349
USER
Which sports are associated with the field of occupation association football player and did Wade Barrett participate in ?
AND((Q937857,P425,c(Q349)), (Q9299663,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q9299663
relation P641
type Q349
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q9299663', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?n WHERE { resource:Q937857 property:P425 ?n . resource:Q9299663 property:P641 ?n . ?n rdf:type ontology:Q349 }
Wade Barrett association football player
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Wade Barrett
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Wade Barrett', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?n WHERE { resource:association_football_player property:field_of_this_occupation ?n . resource:Wade_Barrett property:sport ?n . ?n rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q937857,P425,c(Q349)), (Q9299663,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q9299663
relation P641
type Q349
Player [ANSWER] is associated with the field of occupation [ANSWER] player and did Wade Barrett participate in
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q9299663', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?n WHERE { resource:Q937857 property:P425 ?n . resource:Q9299663 property:P641 ?n . ?n rdf:type ontology:Q349 }
association football
Player association football is associated with the field of occupation association football player and did Wade Barrett participate in
association football
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Wade Barrett
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Wade Barrett', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?n WHERE { resource:association_football_player property:field_of_this_occupation ?n . resource:Wade_Barrett property:sport ?n . ?n rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2736 Q5819331
P641
Q502895
USER
Is Eduardo Jiménez involved in playing that sport ?
(Q5819331,P641,Q2736)
action is_in
entity Q2736
action find
entity Q5819331
relation P641
['Q5819331', 'P641', 'Q2736']
ASK WHERE { resource:Q5819331 property:P641 resource:Q2736 }
association football Eduardo Jiménez
action is_in
entity association football
action find
entity Eduardo Jiménez
relation sport
['Eduardo Jiménez', 'sport', 'association football']
ASK WHERE { resource:Eduardo_Jiménez property:sport resource:association_football }
[]
common name
SYSTEM
YES
(Q5819331,P641,Q2736)
action is_in
entity Q2736
action find
entity Q5819331
relation P641
[ANSWER]
['Q5819331', 'P641', 'Q2736']
ASK WHERE { resource:Q5819331 property:P641 resource:Q2736 }
Yes
action is_in
entity association football
action find
entity Eduardo Jiménez
relation sport
['Eduardo Jiménez', 'sport', 'association football']
ASK WHERE { resource:Eduardo_Jiménez property:sport resource:association_football }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
Which territory is the country of origin of that sport ?
action filter_type
action find
entity Q2736
relation P495
type Q1496967
SELECT DISTINCT ?r WHERE { resource:Q2736 property:P495 ?r . ?r rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
SELECT DISTINCT ?r WHERE { resource:association_football property:country_of_origin ?r . ?r rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
action filter_type
action find
entity Q2736
relation P495
type Q1496967
[ANSWER] is the country of origin of that sport
SELECT DISTINCT ?r WHERE { resource:Q2736 property:P495 ?r . ?r rdf:type ontology:Q1496967 }
England
England is the country of origin of that sport
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
SELECT DISTINCT ?r WHERE { resource:association_football property:country_of_origin ?r . ?r rdf:type ontology:territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q18783400 Q386724
USER
Which occupations are expressed in max number of genres of sculpture or works ?
(c(Q18783400)|c(Q386724),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
[[{'concept': 'Q18783400'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?v . VALUES ( ?v ) { ( ontology:Q18783400 ) ( ontology:Q386724 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:P180 ?w . ?w rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q18783400 } UNION { ?s property:P180 ?w . ?w rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q386724 } } GROUP BY ?w } . FILTER ( ?h = ?i ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type work
[[{'concept': 'genre of sculpture'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?v . VALUES ( ?v ) { ( ontology:genre_of_sculpture ) ( ontology:work ) } } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:depicts ?w . ?w rdf:type ontology:occupation . ?s rdf:type ontology:genre_of_sculpture } UNION { ?s property:depicts ?w . ?w rdf:type ontology:occupation . ?s rdf:type ontology:work } } GROUP BY ?w } . FILTER ( ?h = ?i ) }
[]
occupation genre of sculpture work
Q4991371 Q54128 Q2730732
SYSTEM
soldier, domestic worker, equestrian
Q4991371 Q54128 Q2730732
(c(Q18783400)|c(Q386724),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
[ANSWERS] are expressed in max number of genres of sculpture or works
[[{'concept': 'Q18783400'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?v . VALUES ( ?v ) { ( ontology:Q18783400 ) ( ontology:Q386724 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:P180 ?w . ?w rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q18783400 } UNION { ?s property:P180 ?w . ?w rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q386724 } } GROUP BY ?w } . FILTER ( ?h = ?i ) }
soldier domestic worker equestrian
Soldier, domestic worker and equestrian are expressed in max number of genres of sculpture or works
soldier domestic worker equestrian
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type work
[[{'concept': 'genre of sculpture'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?j ) WHERE { ?f rdf:type ?v . VALUES ( ?v ) { ( ontology:genre_of_sculpture ) ( ontology:work ) } } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:depicts ?w . ?w rdf:type ontology:occupation . ?s rdf:type ontology:genre_of_sculpture } UNION { ?s property:depicts ?w . ?w rdf:type ontology:occupation . ?s rdf:type ontology:work } } GROUP BY ?w } . FILTER ( ?h = ?i ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P180
Q386724 Q838948
USER
How many works and works of art express that occupation ?
(c(Q386724),P180,Q54128) (c(Q838948),P180,Q54128) (c(Q386724),P180,Q4991371) (c(Q838948),P180,Q4991371) (c(Q386724),P180,Q54128) (c(Q838948),P180,Q54128) (c(Q386724),P180,Q2730732) (c(Q838948),P180,Q2730732)
[{'concept': 'Q386724'}, 'P180', 'Q54128'] [{'concept': 'Q838948'}, 'P180', 'Q54128'] [{'concept': 'Q386724'}, 'P180', 'Q4991371'] [{'concept': 'Q838948'}, 'P180', 'Q4991371'] [{'concept': 'Q386724'}, 'P180', 'Q54128'] [{'concept': 'Q838948'}, 'P180', 'Q54128'] [{'concept': 'Q386724'}, 'P180', 'Q2730732'] [{'concept': 'Q838948'}, 'P180', 'Q2730732']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P180 resource:Q54128 } UNION { ?y property:P180 resource:Q54128 } UNION { ?z property:P180 resource:Q3329016 } UNION { ?y property:P180 resource:Q3329016 } UNION { ?z property:P180 resource:Q54128 } UNION { ?y property:P180 resource:Q54128 } UNION { ?z property:P180 resource:Q2730732 } UNION { ?y property:P180 resource:Q2730732 } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q838948 }
[{'concept': 'work'}, 'depicts', 'domestic worker'] [{'concept': 'work of art'}, 'depicts', 'domestic worker'] [{'concept': 'work'}, 'depicts', 'soldier'] [{'concept': 'work of art'}, 'depicts', 'soldier'] [{'concept': 'work'}, 'depicts', 'domestic worker'] [{'concept': 'work of art'}, 'depicts', 'domestic worker'] [{'concept': 'work'}, 'depicts', 'equestrian'] [{'concept': 'work of art'}, 'depicts', 'equestrian']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:depicts resource:domestic_worker } UNION { ?y property:depicts resource:domestic_worker } UNION { ?z property:depicts resource:soldier } UNION { ?y property:depicts resource:soldier } UNION { ?z property:depicts resource:domestic_worker } UNION { ?y property:depicts resource:domestic_worker } UNION { ?z property:depicts resource:equestrian } UNION { ?y property:depicts resource:equestrian } } . ?z rdf:type ontology:work . ?y rdf:type ontology:work_of_art }
[]
work work of art
Quantitative|Count|Mult. entity type|Clarification
Q2730732
SYSTEM
Did you mean equestrian ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P180 resource:Q54128 } UNION { ?y property:P180 resource:Q54128 } UNION { ?z property:P180 resource:Q3329016 } UNION { ?y property:P180 resource:Q3329016 } UNION { ?z property:P180 resource:Q54128 } UNION { ?y property:P180 resource:Q54128 } UNION { ?z property:P180 resource:Q2730732 } UNION { ?y property:P180 resource:Q2730732 } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q838948 }
Did you mean equestrian ?
equestrian
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:depicts resource:domestic_worker } UNION { ?y property:depicts resource:domestic_worker } UNION { ?z property:depicts resource:soldier } UNION { ?y property:depicts resource:soldier } UNION { ?z property:depicts resource:domestic_worker } UNION { ?y property:depicts resource:domestic_worker } UNION { ?z property:depicts resource:equestrian } UNION { ?y property:depicts resource:equestrian } } . ?z rdf:type ontology:work . ?y rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant domestic worker. Could you tell me the answer for that?
(c(Q386724),P180,Q54128) (c(Q838948),P180,Q54128) (c(Q386724),P180,Q4991371) (c(Q838948),P180,Q4991371) (c(Q386724),P180,Q54128) (c(Q838948),P180,Q54128) (c(Q386724),P180,Q2730732) (c(Q838948),P180,Q2730732)
Q54128
[{'concept': 'Q386724'}, 'P180', 'Q54128'] [{'concept': 'Q838948'}, 'P180', 'Q54128'] [{'concept': 'Q386724'}, 'P180', 'Q4991371'] [{'concept': 'Q838948'}, 'P180', 'Q4991371'] [{'concept': 'Q386724'}, 'P180', 'Q54128'] [{'concept': 'Q838948'}, 'P180', 'Q54128'] [{'concept': 'Q386724'}, 'P180', 'Q2730732'] [{'concept': 'Q838948'}, 'P180', 'Q2730732']
[{'concept': 'work'}, 'depicts', 'domestic worker'] [{'concept': 'work of art'}, 'depicts', 'domestic worker'] [{'concept': 'work'}, 'depicts', 'soldier'] [{'concept': 'work of art'}, 'depicts', 'soldier'] [{'concept': 'work'}, 'depicts', 'domestic worker'] [{'concept': 'work of art'}, 'depicts', 'domestic worker'] [{'concept': 'work'}, 'depicts', 'equestrian'] [{'concept': 'work of art'}, 'depicts', 'equestrian']
[]
SYSTEM
2 works and 1 works of art
Q20668011 Q20668010 Q3047015
(c(Q386724),P180,Q54128) (c(Q838948),P180,Q54128) (c(Q386724),P180,Q4991371) (c(Q838948),P180,Q4991371) (c(Q386724),P180,Q54128) (c(Q838948),P180,Q54128) (c(Q386724),P180,Q2730732) (c(Q838948),P180,Q2730732)
[ANSWER]
[{'concept': 'Q386724'}, 'P180', 'Q54128'] [{'concept': 'Q838948'}, 'P180', 'Q54128'] [{'concept': 'Q386724'}, 'P180', 'Q4991371'] [{'concept': 'Q838948'}, 'P180', 'Q4991371'] [{'concept': 'Q386724'}, 'P180', 'Q54128'] [{'concept': 'Q838948'}, 'P180', 'Q54128'] [{'concept': 'Q386724'}, 'P180', 'Q2730732'] [{'concept': 'Q838948'}, 'P180', 'Q2730732']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P180 resource:Q54128 } UNION { ?y property:P180 resource:Q54128 } UNION { ?z property:P180 resource:Q3329016 } UNION { ?y property:P180 resource:Q3329016 } UNION { ?z property:P180 resource:Q54128 } UNION { ?y property:P180 resource:Q54128 } UNION { ?z property:P180 resource:Q2730732 } UNION { ?y property:P180 resource:Q2730732 } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q838948 }
Funerary stele of Thalea Funerary banquet Odalisque with Slave
2 works and 1 works of art
[{'concept': 'work'}, 'depicts', 'domestic worker'] [{'concept': 'work of art'}, 'depicts', 'domestic worker'] [{'concept': 'work'}, 'depicts', 'soldier'] [{'concept': 'work of art'}, 'depicts', 'soldier'] [{'concept': 'work'}, 'depicts', 'domestic worker'] [{'concept': 'work of art'}, 'depicts', 'domestic worker'] [{'concept': 'work'}, 'depicts', 'equestrian'] [{'concept': 'work of art'}, 'depicts', 'equestrian']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:depicts resource:domestic_worker } UNION { ?y property:depicts resource:domestic_worker } UNION { ?z property:depicts resource:soldier } UNION { ?y property:depicts resource:soldier } UNION { ?z property:depicts resource:domestic_worker } UNION { ?y property:depicts resource:domestic_worker } UNION { ?z property:depicts resource:equestrian } UNION { ?y property:depicts resource:equestrian } } . ?z rdf:type ontology:work . ?y rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q191107
P417
Q502895 Q12737077
USER
How many people are the names of the patron saint of greater number of occupations than Clare of Assisi ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q191107
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Q191107 property:P417 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?g > ?l ) . { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?g ) WHERE { ?k rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 . ?n property:P417 ?k } GROUP BY ?k } }
Clare of Assisi
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Clare of Assisi
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Clare_of_Assisi property:patron_saint ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?g > ?l ) . { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?g ) WHERE { ?k rdf:type ontology:common_name . ?n rdf:type ontology:occupation . ?n property:patron_saint ?k } GROUP BY ?k } }
[]
common name occupation
SYSTEM
16
Q229190 Q328804 Q166876 Q170547 Q128538 Q183240 Q196653 Q44265 Q192816 Q43982 Q179718 Q43600 Q744884 Q151967 Q200895 Q44248
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q191107
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Q191107 property:P417 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?g > ?l ) . { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?g ) WHERE { ?k rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 . ?n property:P417 ?k } GROUP BY ?k } }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Luke the Evangelist Saint Lucy Saint Veronica Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Zita Saint Blaise Agatha of Sicily Jerome
16
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Clare of Assisi
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Clare_of_Assisi property:patron_saint ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?g > ?l ) . { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?g ) WHERE { ?k rdf:type ontology:common_name . ?n rdf:type ontology:occupation . ?n property:patron_saint ?k } GROUP BY ?k } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q318974
P417
Q502895 Q12737077
USER
And how about Vincent of Saragossa?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q318974
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:P417 ?t . ?t rdf:type ontology:Q502895 . ?k rdf:type ontology:Q12737077 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:Q318974 property:P417 ?c . ?c rdf:type ontology:Q502895 } } . FILTER ( ?g > ?h ) }
Vincent of Saragossa
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Vincent of Saragossa
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:patron_saint ?t . ?t rdf:type ontology:common_name . ?k rdf:type ontology:occupation } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:Vincent_of_Saragossa property:patron_saint ?c . ?c rdf:type ontology:common_name } } . FILTER ( ?g > ?h ) }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q318974
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:P417 ?t . ?t rdf:type ontology:Q502895 . ?k rdf:type ontology:Q12737077 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:Q318974 property:P417 ?c . ?c rdf:type ontology:Q502895 } } . FILTER ( ?g > ?h ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Vincent of Saragossa
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:patron_saint ?t . ?t rdf:type ontology:common_name . ?k rdf:type ontology:occupation } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:Vincent_of_Saragossa property:patron_saint ?c . ?c rdf:type ontology:common_name } } . FILTER ( ?g > ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1930187
P425
Q12737077 Q9332
USER
How many occupations and behaviors have journalist as thier associated field of occupation ?
(Q1930187,P425,c(Q12737077)) (Q1930187,P425,c(Q9332))
action count
action union
action filter_type
action find
entity Q1930187
relation P425
type Q12737077
action filter_type
action find
entity Q1930187
relation P425
type Q9332
['Q1930187', 'P425', {'concept': 'Q12737077'}] ['Q1930187', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:Q12737077 ) ( ontology:Q9332 ) } }
journalist
action count
action union
action filter_type
action find
entity journalist
relation field of this occupation
type occupation
action filter_type
action find
entity journalist
relation field of this occupation
type behavior
['journalist', 'field of this occupation', {'concept': 'occupation'}] ['journalist', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:occupation ) ( ontology:behavior ) } }
[]
occupation behavior
SYSTEM
1 occupations and 1 behaviors
Q11030 Q36180
(Q1930187,P425,c(Q12737077)) (Q1930187,P425,c(Q9332))
action count
action union
action filter_type
action find
entity Q1930187
relation P425
type Q12737077
action filter_type
action find
entity Q1930187
relation P425
type Q9332
[ANSWER]
['Q1930187', 'P425', {'concept': 'Q12737077'}] ['Q1930187', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:Q12737077 ) ( ontology:Q9332 ) } }
journalism writer
1 occupations and 1 behaviors
action count
action union
action filter_type
action find
entity journalist
relation field of this occupation
type occupation
action filter_type
action find
entity journalist
relation field of this occupation
type behavior
['journalist', 'field of this occupation', {'concept': 'occupation'}] ['journalist', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:occupation ) ( ontology:behavior ) } }
[]