Simple Question (Direct)
Simple Question
Q3811578
P106
Q12737077
USER
Which occupation is the profession of Justin Griffith ?
(Q3811578,P106,c(Q12737077))
action filter_type
action find
entity Q3811578
relation P106
type Q12737077
['Q3811578', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q3811578 property:P106 ?u }
Justin Griffith
action filter_type
action find
entity Justin Griffith
relation occupation
type occupation
['Justin Griffith', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Justin_Griffith property:occupation ?u }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
(Q3811578,P106,c(Q12737077))
action filter_type
action find
entity Q3811578
relation P106
type Q12737077
[ANSWER] is the profession of Justin Griffith
['Q3811578', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q3811578 property:P106 ?u }
American football player
American football player is the profession of Justin Griffith
American football player
action filter_type
action find
entity Justin Griffith
relation occupation
type occupation
['Justin Griffith', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Justin_Griffith property:occupation ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3811578
P21
Q290
USER
What is the sex of Justin Griffith ?
(Q3811578,P21,c(Q290))
action filter_type
action find
entity Q3811578
relation P21
type Q290
['Q3811578', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q3811578 property:P21 ?f . ?f rdf:type ontology:Q290 }
Justin Griffith
action filter_type
action find
entity Justin Griffith
relation gender
type sex
['Justin Griffith', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Justin_Griffith property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3811578,P21,c(Q290))
action filter_type
action find
entity Q3811578
relation P21
type Q290
The sex of Justin Griffith is a [ANSWER]
['Q3811578', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q3811578 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
The sex of Justin Griffith is a male
male
action filter_type
action find
entity Justin Griffith
relation gender
type sex
['Justin Griffith', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Justin_Griffith property:gender ?f . ?f rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q15709879 Q11060274
USER
Which occupations are depicted in exactly 3 artwork series or prints ?
(c(Q15709879)|c(Q11060274),P180,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
value 3
[[{'concept': 'Q15709879'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?l WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15709879 ) ( ontology:Q11060274 ) } } GROUP BY ?l } . FILTER ( ?k = 3 ) }
action equal
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type print
value 3
[[{'concept': 'artwork series'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?l WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:artwork_series ) ( ontology:print ) } } GROUP BY ?l } . FILTER ( ?k = 3 ) }
[]
occupation artwork series print
Q483501 Q838811
SYSTEM
artist, peasant
Q483501 Q838811
(c(Q15709879)|c(Q11060274),P180,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
value 3
The [ANSWERS] are depicted in exactly 3 artwork series or prints
[[{'concept': 'Q15709879'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?l WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15709879 ) ( ontology:Q11060274 ) } } GROUP BY ?l } . FILTER ( ?k = 3 ) }
artist peasant
The artist and peasant are depicted in exactly 3 artwork series or prints
artist peasant
action equal
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type print
value 3
[[{'concept': 'artwork series'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?l WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:artwork_series ) ( ontology:print ) } } GROUP BY ?l } . FILTER ( ?k = 3 ) }
[]