Simple Question (Direct)
Simple Question
Q56713
P27
Q3024240
USER
Which former country is Aleksander Groza an inhabitant of ?
(Q56713,P27,c(Q3024240))
action filter_type
action find
entity Q56713
relation P27
type Q3024240
['Q56713', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q3024240 . resource:Q56713 property:P27 ?u }
Aleksander Groza
action filter_type
action find
entity Aleksander Groza
relation country of citizenship
type former country
['Aleksander Groza', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:former_country . resource:Aleksander_Groza property:country_of_citizenship ?u }
[]
former country
Q34266
SYSTEM
Russian Empire
Q34266
(Q56713,P27,c(Q3024240))
action filter_type
action find
entity Q56713
relation P27
type Q3024240
The [ANSWER] is Aleksander Groza an inhabitant of
['Q56713', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q3024240 . resource:Q56713 property:P27 ?u }
Russian Empire
The Russian Empire is Aleksander Groza an inhabitant of
Russian Empire
action filter_type
action find
entity Aleksander Groza
relation country of citizenship
type former country
['Aleksander Groza', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:former_country . resource:Aleksander_Groza property:country_of_citizenship ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q56713
P106
Q12737077
USER
What do Aleksander Groza do for a living ?
(Q56713,P106,c(Q12737077))
action filter_type
action find
entity Q56713
relation P106
type Q12737077
['Q56713', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q56713 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Aleksander Groza
action filter_type
action find
entity Aleksander Groza
relation occupation
type occupation
['Aleksander Groza', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Aleksander_Groza property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q49757 Q36180
SYSTEM
poet, writer
Q49757 Q36180
(Q56713,P106,c(Q12737077))
action filter_type
action find
entity Q56713
relation P106
type Q12737077
The [ANSWERS] Aleksander Groza do for a living
['Q56713', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q56713 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
poet writer
The poet and writer Aleksander Groza do for a living
poet writer
action filter_type
action find
entity Aleksander Groza
relation occupation
type occupation
['Aleksander Groza', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Aleksander_Groza property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q56713
P21
Q290
USER
Which sex does Aleksander Groza possess ?
(Q56713,P21,c(Q290))
action filter_type
action find
entity Q56713
relation P21
type Q290
['Q56713', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q56713 property:P21 ?m . ?m rdf:type ontology:Q290 }
Aleksander Groza
action filter_type
action find
entity Aleksander Groza
relation gender
type sex
['Aleksander Groza', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Aleksander_Groza property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q56713,P21,c(Q290))
action filter_type
action find
entity Q56713
relation P21
type Q290
Aleksander Groza possesses un [ANSWER]
['Q56713', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q56713 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
Aleksander Groza possesses un male
male
action filter_type
action find
entity Aleksander Groza
relation gender
type sex
['Aleksander Groza', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Aleksander_Groza property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q694132
Q290
USER
And how about Herbert Huber?
(Q694132,P21,c(Q290))
action filter_type
action find
entity Q694132
relation P21
type Q290
['Q694132', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q694132 property:P21 ?d . ?d rdf:type ontology:Q290 }
Herbert Huber
action filter_type
action find
entity Herbert Huber
relation gender
type sex
['Herbert Huber', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Herbert_Huber property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q694132,P21,c(Q290))
action filter_type
action find
entity Q694132
relation P21
type Q290
[ANSWER]
['Q694132', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q694132 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Herbert Huber
relation gender
type sex
['Herbert Huber', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Herbert_Huber property:gender ?d . ?d rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q18783400 Q386724
USER
How many occupations are depicted in around 1 genres of sculpture or works ?
(c(Q18783400)|c(Q386724),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
value 1
[[{'concept': 'Q18783400'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?o ) WHERE { { ?e rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q18783400 . ?i property:P180 ?e } UNION { ?i rdf:type ontology:Q386724 . ?e rdf:type ontology:Q12737077 . ?i property:P180 ?e } } GROUP BY ?e } . FILTER ( ?o = 1 ) }
action count
action approx
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
value 1
[[{'concept': 'genre of sculpture'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?o ) WHERE { { ?e rdf:type ontology:occupation . ?i rdf:type ontology:genre_of_sculpture . ?i property:depicts ?e } UNION { ?i rdf:type ontology:work . ?e rdf:type ontology:occupation . ?i property:depicts ?e } } GROUP BY ?e } . FILTER ( ?o = 1 ) }
[]
occupation genre of sculpture work
SYSTEM
2
Q131512 Q42603
(c(Q18783400)|c(Q386724),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
value 1
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?o ) WHERE { { ?e rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q18783400 . ?i property:P180 ?e } UNION { ?i rdf:type ontology:Q386724 . ?e rdf:type ontology:Q12737077 . ?i property:P180 ?e } } GROUP BY ?e } . FILTER ( ?o = 1 ) }
farmer priest
2
action count
action approx
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
value 1
[[{'concept': 'genre of sculpture'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?o ) WHERE { { ?e rdf:type ontology:occupation . ?i rdf:type ontology:genre_of_sculpture . ?i property:depicts ?e } UNION { ?i rdf:type ontology:work . ?e rdf:type ontology:occupation . ?i property:depicts ?e } } GROUP BY ?e } . FILTER ( ?o = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q694132
P161
Q201658
USER
Which film genre has Herbert Huber in its star cast ?
(c(Q201658),P161,Q694132)
action filter_type
action find_reverse
entity Q694132
relation P161
type Q201658
[{'concept': 'Q201658'}, 'P161', 'Q694132']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q201658 . ?c property:P161 resource:Q694132 }
Herbert Huber
action filter_type
action find_reverse
entity Herbert Huber
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Herbert Huber']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:film_genre . ?c property:cast_member resource:Herbert_Huber }
[]
film genre
Q3986838
SYSTEM
The Eternal City
Q3986838
(c(Q201658),P161,Q694132)
action filter_type
action find_reverse
entity Q694132
relation P161
type Q201658
[ANSWER] has Herbert Huber in its star cast
[{'concept': 'Q201658'}, 'P161', 'Q694132']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q201658 . ?c property:P161 resource:Q694132 }
The Eternal City
The Eternal City has Herbert Huber in its star cast
The Eternal City
action filter_type
action find_reverse
entity Herbert Huber
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Herbert Huber']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:film_genre . ?c property:cast_member resource:Herbert_Huber }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3986838
P57
Q502895
USER
Who directed that film genre ?
(Q3986838,P57,c(Q502895))
action filter_type
action find
entity Q3986838
relation P57
type Q502895
['Q3986838', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3986838 property:P57 ?h . ?h rdf:type ontology:Q502895 }
The Eternal City
action filter_type
action find
entity The Eternal City
relation director
type common name
['The Eternal City', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:The_Eternal_City property:director ?h . ?h rdf:type ontology:common_name }
[]
common name
Q347864 Q973200
SYSTEM
Edwin Stanton Porter, Hugh Ford
Q347864 Q973200
(Q3986838,P57,c(Q502895))
action filter_type
action find
entity Q3986838
relation P57
type Q502895
[ANSWERS] directed that film genre
['Q3986838', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3986838 property:P57 ?h . ?h rdf:type ontology:Q502895 }
Edwin Stanton Porter Hugh Ford
Edwin Stanton Porter and Hugh Ford directed that film genre
Edwin Stanton Porter Hugh Ford
action filter_type
action find
entity The Eternal City
relation director
type common name
['The Eternal City', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:The_Eternal_City property:director ?h . ?h rdf:type ontology:common_name }
[]