Simple Question (Direct)
Simple Question
Q20002388
P57
Q502895
USER
Who directed Raffles ?
(Q20002388,P57,c(Q502895))
action filter_type
action find
entity Q20002388
relation P57
type Q502895
['Q20002388', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q20002388 property:P57 ?r . ?r rdf:type ontology:Q502895 }
Raffles
action filter_type
action find
entity Raffles
relation director
type common name
['Raffles', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Raffles property:director ?r . ?r rdf:type ontology:common_name }
[]
common name
Q2832448
SYSTEM
Alejandro Galindo
Q2832448
(Q20002388,P57,c(Q502895))
action filter_type
action find
entity Q20002388
relation P57
type Q502895
[ANSWER] directed Raffles
['Q20002388', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q20002388 property:P57 ?r . ?r rdf:type ontology:Q502895 }
Alejandro Galindo
Alejandro Galindo directed Raffles
Alejandro Galindo
action filter_type
action find
entity Raffles
relation director
type common name
['Raffles', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Raffles property:director ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20002388
P161
Q502895
USER
Which people were casted in that work of art ?
(Q2832448,P161,c(Q502895))
action filter_type
action find
entity Q20002388
relation P161
type Q502895
['Q2832448', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q20002388 property:P161 ?a . ?a rdf:type ontology:Q502895 }
Raffles
action filter_type
action find
entity Raffles
relation cast member
type common name
['Alejandro Galindo', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Raffles property:cast_member ?a . ?a rdf:type ontology:common_name }
[]
common name
Q5707352 Q7252969 Q9013694
SYSTEM
Arturo Martínez, Prudencia Grifell, José Baviera
Q6002141 Q9013694 Q5707352 Q20679464 Q6781964 Q6013911 Q7252969 Q24203459
(Q2832448,P161,c(Q502895))
action filter_type
action find
entity Q20002388
relation P161
type Q502895
[ANSWERS] were casted in that work of art
['Q2832448', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q20002388 property:P161 ?a . ?a rdf:type ontology:Q502895 }
Martha Mijares José Baviera Arturo Martínez Rafael Bertrand María Duval Miguel Arenas Prudencia Grifell Manuel Dondé
Arturo Martínez, Prudencia Grifell and José Baviera were casted in that work of art
Arturo Martínez Prudencia Grifell José Baviera
action filter_type
action find
entity Raffles
relation cast member
type common name
['Alejandro Galindo', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Raffles property:cast_member ?a . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q20002388
P161
Q838948
USER
Do Raffles have those people as actor ?
(Q20002388,P161,Q5707352) (Q20002388,P161,Q7252969) (Q20002388,P161,Q9013694)
action is_in
entity prev_answer
action find
entity Q20002388
relation P161
['Q20002388', 'P161', 'Q5707352'] ['Q20002388', 'P161', 'Q7252969'] ['Q20002388', 'P161', 'Q9013694']
ASK WHERE { resource:Q20002388 property:P161 ?b . VALUES ( ?b ) { ( resource:Q6002141 ) ( resource:Q9013694 ) ( resource:Q5707352 ) } }
Raffles
action is_in
entity prev_answer
action find
entity Raffles
relation cast member
['Raffles', 'cast member', 'Arturo Martínez'] ['Raffles', 'cast member', 'Prudencia Grifell'] ['Raffles', 'cast member', 'José Baviera']
ASK WHERE { resource:Raffles property:cast_member ?b . VALUES ( ?b ) { ( resource:Martha_Mijares ) ( resource:José_Baviera ) ( resource:Arturo_Martínez ) } }
[]
work of art
SYSTEM
YES
(Q20002388,P161,Q5707352) (Q20002388,P161,Q7252969) (Q20002388,P161,Q9013694)
action is_in
entity prev_answer
action find
entity Q20002388
relation P161
[ANSWER]
['Q20002388', 'P161', 'Q5707352'] ['Q20002388', 'P161', 'Q7252969'] ['Q20002388', 'P161', 'Q9013694']
ASK WHERE { resource:Q20002388 property:P161 ?b . VALUES ( ?b ) { ( resource:Q6002141 ) ( resource:Q9013694 ) ( resource:Q5707352 ) } }
Yes
action is_in
entity prev_answer
action find
entity Raffles
relation cast member
['Raffles', 'cast member', 'Arturo Martínez'] ['Raffles', 'cast member', 'Prudencia Grifell'] ['Raffles', 'cast member', 'José Baviera']
ASK WHERE { resource:Raffles property:cast_member ?b . VALUES ( ?b ) { ( resource:Martha_Mijares ) ( resource:José_Baviera ) ( resource:Arturo_Martínez ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q9013694 Q1489
P20
Q56061
USER
Did that person die Mexico City ?
(Q9013694,P20,Q1489)
action is_in
entity Q1489
action find
entity Q9013694
relation P20
['Q9013694', 'P20', 'Q1489']
ASK WHERE { resource:Q9013694 property:P20 resource:Q1489 }
José Baviera Mexico City
action is_in
entity Mexico City
action find
entity José Baviera
relation place of death
['José Baviera', 'place of death', 'Mexico City']
ASK WHERE { resource:José_Baviera property:place_of_death resource:Mexico_City }
[]
administrative territorial entity
SYSTEM
YES
(Q9013694,P20,Q1489)
action is_in
entity Q1489
action find
entity Q9013694
relation P20
[ANSWER]
['Q9013694', 'P20', 'Q1489']
ASK WHERE { resource:Q9013694 property:P20 resource:Q1489 }
Yes
action is_in
entity Mexico City
action find
entity José Baviera
relation place of death
['José Baviera', 'place of death', 'Mexico City']
ASK WHERE { resource:José_Baviera property:place_of_death resource:Mexico_City }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9013694
P106
Q28640
USER
What is the job of that person ?
action filter_type
action find
entity Q9013694
relation P106
type Q28640
SELECT DISTINCT ?u WHERE { resource:Q9013694 property:P106 ?u . ?u rdf:type ontology:Q28640 }
José Baviera
action filter_type
action find
entity José Baviera
relation occupation
type profession
SELECT DISTINCT ?u WHERE { resource:José_Baviera property:occupation ?u . ?u rdf:type ontology:profession }
[]
profession
Q10800557
SYSTEM
film actor
Q10800557
action filter_type
action find
entity Q9013694
relation P106
type Q28640
The job of that person is a [ANSWER]
SELECT DISTINCT ?u WHERE { resource:Q9013694 property:P106 ?u . ?u rdf:type ontology:Q28640 }
film actor
The job of that person is a film actor
film actor
action filter_type
action find
entity José Baviera
relation occupation
type profession
SELECT DISTINCT ?u WHERE { resource:José_Baviera property:occupation ?u . ?u rdf:type ontology:profession }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P101
Q28640 Q502895
USER
How many professions are the field of work of more number of people than that profession ?
(c(Q502895),P101,c(Q28640))
action count
action greater
action find_reverse_tuple_counts
relation P101
type Q28640
type Q502895
action count
action filter_type
action find
entity Q10800557
relation P101
type Q28640
[{'concept': 'Q502895'}, 'P101', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:P101 ?b . ?n rdf:type ontology:Q502895 . ?b rdf:type ontology:Q28640 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q10800557 property:P101 ?w . ?w rdf:type ontology:Q28640 } } . FILTER ( ?l > ?t ) }
action count
action greater
action find_reverse_tuple_counts
relation field of work
type profession
type common name
action count
action filter_type
action find
entity film actor
relation field of work
type profession
[{'concept': 'common name'}, 'field of work', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:field_of_work ?b . ?n rdf:type ontology:common_name . ?b rdf:type ontology:profession } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:film_actor property:field_of_work ?w . ?w rdf:type ontology:profession } } . FILTER ( ?l > ?t ) }
[]
profession common name
SYSTEM
3
Q3282637 Q40348 Q185351
(c(Q502895),P101,c(Q28640))
action count
action greater
action find_reverse_tuple_counts
relation P101
type Q28640
type Q502895
action count
action filter_type
action find
entity Q10800557
relation P101
type Q28640
[ANSWER]
[{'concept': 'Q502895'}, 'P101', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:P101 ?b . ?n rdf:type ontology:Q502895 . ?b rdf:type ontology:Q28640 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q10800557 property:P101 ?w . ?w rdf:type ontology:Q28640 } } . FILTER ( ?l > ?t ) }
film producer lawyer jurist
3
action count
action greater
action find_reverse_tuple_counts
relation field of work
type profession
type common name
action count
action filter_type
action find
entity film actor
relation field of work
type profession
[{'concept': 'common name'}, 'field of work', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:field_of_work ?b . ?n rdf:type ontology:common_name . ?b rdf:type ontology:profession } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:film_actor property:field_of_work ?w . ?w rdf:type ontology:profession } } . FILTER ( ?l > ?t ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q502895 Q2342494 Q36649
USER
How many people are the name of the persons who plays a role in approximately 3 collectables and visual artss ?
(c(Q2342494)|c(Q36649),P674,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P674
type Q502895
type Q36649
value 3
[[{'concept': 'Q2342494'}, {'concept': 'Q36649'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?w WHERE { VALUES ( ?v ) { ( ontology:Q2342494 ) ( ontology:Q36649 ) } . ?f rdf:type ?v } GROUP BY ?w } . FILTER ( ?n = 3 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation characters
type common name
type collectable
action find_reverse_tuple_counts
relation characters
type common name
type visual arts
value 3
[[{'concept': 'collectable'}, {'concept': 'visual arts'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?w WHERE { VALUES ( ?v ) { ( ontology:collectable ) ( ontology:visual_arts ) } . ?f rdf:type ?v } GROUP BY ?w } . FILTER ( ?n = 3 ) }
[]
common name collectable visual arts
SYSTEM
2
Q913 Q15711674
(c(Q2342494)|c(Q36649),P674,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P674
type Q502895
type Q36649
value 3
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q36649'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?w WHERE { VALUES ( ?v ) { ( ontology:Q2342494 ) ( ontology:Q36649 ) } . ?f rdf:type ?v } GROUP BY ?w } . FILTER ( ?n = 3 ) }
Socrates Zecora
2
action count
action approx
action union
action find_reverse_tuple_counts
relation characters
type common name
type collectable
action find_reverse_tuple_counts
relation characters
type common name
type visual arts
value 3
[[{'concept': 'collectable'}, {'concept': 'visual arts'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?w WHERE { VALUES ( ?v ) { ( ontology:collectable ) ( ontology:visual_arts ) } . ?f rdf:type ?v } GROUP BY ?w } . FILTER ( ?n = 3 ) }
[]