Simple Question (Direct)
Simple Question
Q5791922
P1412
Q34770
USER
Which language can Cristóbal de Castro read ?
(Q5791922,P1412,c(Q34770))
action filter_type
action find
entity Q5791922
relation P1412
type Q34770
['Q5791922', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q34770 . resource:Q5791922 property:P1412 ?z }
Cristóbal de Castro
action filter_type
action find
entity Cristóbal de Castro
relation languages spoken, written or signed
type language
['Cristóbal de Castro', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:language . resource:Cristóbal_de_Castro property:languages_spoken,_written_or_signed ?z }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q5791922,P1412,c(Q34770))
action filter_type
action find
entity Q5791922
relation P1412
type Q34770
Cristóbal de Castro can read in [ANSWER]
['Q5791922', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q34770 . resource:Q5791922 property:P1412 ?z }
Spanish
Cristóbal de Castro can read in Spanish
Spanish
action filter_type
action find
entity Cristóbal de Castro
relation languages spoken, written or signed
type language
['Cristóbal de Castro', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:language . resource:Cristóbal_de_Castro property:languages_spoken,_written_or_signed ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5791922
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q1321,P39,c(Q12737077))
action filter_type
action find
entity Q5791922
relation P39
type Q12737077
['Q1321', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q5791922 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Cristóbal de Castro
action filter_type
action find
entity Cristóbal de Castro
relation position held
type occupation
['Spanish', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Cristóbal_de_Castro property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q5551744
SYSTEM
civil governor
Q5551744
(Q1321,P39,c(Q12737077))
action filter_type
action find
entity Q5791922
relation P39
type Q12737077
By [ANSWER] was a position held by that person
['Q1321', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q5791922 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
civil governor
By civil governor was a position held by that person
civil governor
action filter_type
action find
entity Cristóbal de Castro
relation position held
type occupation
['Spanish', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Cristóbal_de_Castro property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5791922
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q5551744,P27,c(Q15617994))
action filter_type
action find
entity Q5791922
relation P27
type Q15617994
['Q5551744', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q5791922 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Cristóbal de Castro
action filter_type
action find
entity Cristóbal de Castro
relation country of citizenship
type designation for an administrative territorial entity
['civil governor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Cristóbal_de_Castro property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q5551744,P27,c(Q15617994))
action filter_type
action find
entity Q5791922
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q5551744', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q5791922 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Spain
Spain is that person a civilian of
Spain
action filter_type
action find
entity Cristóbal de Castro
relation country of citizenship
type designation for an administrative territorial entity
['civil governor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Cristóbal_de_Castro property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q29 Q38
P530
Q15617994
USER
Does Italy have a diplomatic relationship with that one ?
(Q29,P530,Q38)
action is_in
entity Q38
action find
entity Q29
relation P530
['Q29', 'P530', 'Q38']
ASK WHERE { resource:Q29 property:P530 resource:Q38 }
Spain Italy
action is_in
entity Italy
action find
entity Spain
relation diplomatic relation
['Spain', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q29,P530,Q38)
action is_in
entity Q38
action find
entity Q29
relation P530
[ANSWER]
['Q29', 'P530', 'Q38']
ASK WHERE { resource:Q29 property:P530 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Spain
relation diplomatic relation
['Spain', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Italy }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5551744 Q29 Q42469
P27
Q15617994
USER
Is civil governor a civilian of Spain and Civate ?
(Q5551744,P27,Q29) (Q5551744,P27,Q42469)
action is_in
entity Q5551744
action intersection
action find_reverse
entity Q29
relation P27
action find_reverse
entity Q42469
relation P27
['Q5551744', 'P27', 'Q29'] ['Q5551744', 'P27', 'Q42469']
ASK WHERE { resource:Q5551744 property:P27 resource:Q29 . resource:Q5551744 property:P27 resource:Q42469 }
civil governor Spain Civate
action is_in
entity civil governor
action intersection
action find_reverse
entity Spain
relation country of citizenship
action find_reverse
entity Civate
relation country of citizenship
['civil governor', 'country of citizenship', 'Spain'] ['civil governor', 'country of citizenship', 'Civate']
ASK WHERE { resource:civil_governor property:country_of_citizenship resource:Spain . resource:civil_governor property:country_of_citizenship resource:Civate }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q5551744,P27,Q29) (Q5551744,P27,Q42469)
action is_in
entity Q5551744
action intersection
action find_reverse
entity Q29
relation P27
action find_reverse
entity Q42469
relation P27
[ANSWER]
['Q5551744', 'P27', 'Q29'] ['Q5551744', 'P27', 'Q42469']
ASK WHERE { resource:Q5551744 property:P27 resource:Q29 . resource:Q5551744 property:P27 resource:Q42469 }
YES and NO respectively
action is_in
entity civil governor
action intersection
action find_reverse
entity Spain
relation country of citizenship
action find_reverse
entity Civate
relation country of citizenship
['civil governor', 'country of citizenship', 'Spain'] ['civil governor', 'country of citizenship', 'Civate']
ASK WHERE { resource:civil_governor property:country_of_citizenship resource:Spain . resource:civil_governor property:country_of_citizenship resource:Civate }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P364
Q34770 Q201658 Q15416
USER
Which languages are the original languages of creation of max number of film genres or television programs ?
(c(Q201658)|c(Q15416),P364,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q201658
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?r WHERE { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:Q201658 ) ( ontology:Q15416 ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) ?j WHERE { { ?i property:P364 ?j . ?j rdf:type ontology:Q34770 . ?i rdf:type ontology:Q201658 } UNION { ?i property:P364 ?j . ?j rdf:type ontology:Q34770 . ?i rdf:type ontology:Q15416 } } GROUP BY ?j } . FILTER ( ?p = ?q ) }
action argmax
action union
action find_reverse_tuple_counts
relation original language of work
type language
type film genre
action find_reverse_tuple_counts
relation original language of work
type language
type television program
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?r WHERE { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:film_genre ) ( ontology:television_program ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) ?j WHERE { { ?i property:original_language_of_work ?j . ?j rdf:type ontology:language . ?i rdf:type ontology:film_genre } UNION { ?i property:original_language_of_work ?j . ?j rdf:type ontology:language . ?i rdf:type ontology:television_program } } GROUP BY ?j } . FILTER ( ?p = ?q ) }
[]
language film genre television program
Q1860
SYSTEM
English
Q1860
(c(Q201658)|c(Q15416),P364,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q201658
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
[ANSWER] is the original languages of creation of max number of film genres or television programs
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?r WHERE { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:Q201658 ) ( ontology:Q15416 ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) ?j WHERE { { ?i property:P364 ?j . ?j rdf:type ontology:Q34770 . ?i rdf:type ontology:Q201658 } UNION { ?i property:P364 ?j . ?j rdf:type ontology:Q34770 . ?i rdf:type ontology:Q15416 } } GROUP BY ?j } . FILTER ( ?p = ?q ) }
English
English is the original languages of creation of max number of film genres or television programs
English
action argmax
action union
action find_reverse_tuple_counts
relation original language of work
type language
type film genre
action find_reverse_tuple_counts
relation original language of work
type language
type television program
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?r WHERE { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:film_genre ) ( ontology:television_program ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) ?j WHERE { { ?i property:original_language_of_work ?j . ?j rdf:type ontology:language . ?i rdf:type ontology:film_genre } UNION { ?i property:original_language_of_work ?j . ?j rdf:type ontology:language . ?i rdf:type ontology:television_program } } GROUP BY ?j } . FILTER ( ?p = ?q ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1029
Q502895 Q40218 Q20027951
USER
Which people are the team member of approximately 2 spacecrafts and aircraft power classes ?
(c(Q40218)|c(Q20027951),P1029,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q40218
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q20027951
value 2
[[{'concept': 'Q40218'}, {'concept': 'Q20027951'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?g ) WHERE { VALUES ( ?p ) { ( ontology:Q40218 ) ( ontology:Q20027951 ) } . ?r rdf:type ?p } GROUP BY ?y } }
action approx
action union
action find_reverse_tuple_counts
relation crew member
type common name
type spacecraft
action find_reverse_tuple_counts
relation crew member
type common name
type aircraft power class
value 2
[[{'concept': 'spacecraft'}, {'concept': 'aircraft power class'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?g ) WHERE { VALUES ( ?p ) { ( ontology:spacecraft ) ( ontology:aircraft_power_class ) } . ?r rdf:type ?p } GROUP BY ?y } }
[]
common name spacecraft aircraft power class
Q461840 Q472683
SYSTEM
Jing Haipeng, Nie Haisheng
Q461840 Q472683
(c(Q40218)|c(Q20027951),P1029,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q40218
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q20027951
value 2
[ANSWERS] are the team member of approximately 2 spacecrafts and aircraft power classes
[[{'concept': 'Q40218'}, {'concept': 'Q20027951'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?g ) WHERE { VALUES ( ?p ) { ( ontology:Q40218 ) ( ontology:Q20027951 ) } . ?r rdf:type ?p } GROUP BY ?y } }
Jing Haipeng Nie Haisheng
Jing Haipeng and Nie Haisheng are the team member of approximately 2 spacecrafts and aircraft power classes
Jing Haipeng Nie Haisheng
action approx
action union
action find_reverse_tuple_counts
relation crew member
type common name
type spacecraft
action find_reverse_tuple_counts
relation crew member
type common name
type aircraft power class
value 2
[[{'concept': 'spacecraft'}, {'concept': 'aircraft power class'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?g ) WHERE { VALUES ( ?p ) { ( ontology:spacecraft ) ( ontology:aircraft_power_class ) } . ?r rdf:type ?p } GROUP BY ?y } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q461840 Q472683
P106
Q12737077
USER
What do Jing Haipeng and Nie Haisheng do for a living ?
(Q461840,P106,c(Q12737077)) (Q472683,P106,c(Q12737077))
action union
action filter_type
action find
entity Q461840
relation P106
type Q12737077
action filter_type
action find
entity Q472683
relation P106
type Q12737077
['Q461840', 'P106', {'concept': 'Q12737077'}] ['Q472683', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?h ) { ( resource:Q461840 ) ( resource:Q472683 ) } . ?h property:P106 ?v }
Jing Haipeng Nie Haisheng
action union
action filter_type
action find
entity Jing Haipeng
relation occupation
type occupation
action filter_type
action find
entity Nie Haisheng
relation occupation
type occupation
['Jing Haipeng', 'occupation', {'concept': 'occupation'}] ['Nie Haisheng', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?h ) { ( resource:Jing_Haipeng ) ( resource:Nie_Haisheng ) } . ?h property:occupation ?v }
[]
occupation
Q618694 Q11631 Q2095549
SYSTEM
fighter pilot, astronaut, aviator
Q618694 Q11631 Q2095549 Q618694 Q11631
(Q461840,P106,c(Q12737077)) (Q472683,P106,c(Q12737077))
action union
action filter_type
action find
entity Q461840
relation P106
type Q12737077
action filter_type
action find
entity Q472683
relation P106
type Q12737077
Jing Haipeng and Nie Haisheng do for a living as [ANSWERS]
['Q461840', 'P106', {'concept': 'Q12737077'}] ['Q472683', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?h ) { ( resource:Q461840 ) ( resource:Q472683 ) } . ?h property:P106 ?v }
fighter pilot astronaut aviator fighter pilot astronaut
Jing Haipeng and Nie Haisheng do for a living as fighter pilot, astronaut and aviator
fighter pilot astronaut aviator
action union
action filter_type
action find
entity Jing Haipeng
relation occupation
type occupation
action filter_type
action find
entity Nie Haisheng
relation occupation
type occupation
['Jing Haipeng', 'occupation', {'concept': 'occupation'}] ['Nie Haisheng', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?h ) { ( resource:Jing_Haipeng ) ( resource:Nie_Haisheng ) } . ?h property:occupation ?v }
[]
Clarification
Simple Question|Single Entity|Indirect
Q618694
P425
Q180684
USER
Who has that one as the associated field of occupation ?
(Q618694,P425,c(Q180684))
action filter_type
action find
entity Q618694
relation P425
type Q180684
['Q618694', 'P425', {'concept': 'Q180684'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q180684 . resource:Q618694 property:P425 ?w }
fighter pilot
action filter_type
action find
entity fighter pilot
relation field of this occupation
type conflict
['fighter pilot', 'field of this occupation', {'concept': 'conflict'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:conflict . resource:fighter_pilot property:field_of_this_occupation ?w }
[]
conflict
Clarification for simple ques.
Q2095549
SYSTEM
Did you mean aviator ?
Q618694 Q11631 Q2095549
(Q618694,P425,c(Q180684)) (Q11631,P425,c(Q180684)) (Q2095549,P425,c(Q180684))
[ANSWER]
['Q618694', 'P425', {'concept': 'Q180684'}] ['Q11631', 'P425', {'concept': 'Q180684'}] ['Q2095549', 'P425', {'concept': 'Q180684'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q180684 . resource:Q618694 property:P425 ?w }
fighter pilot astronaut aviator
Did you mean aviator ?
aviator
['fighter pilot', 'field of this occupation', {'concept': 'conflict'}] ['astronaut', 'field of this occupation', {'concept': 'conflict'}] ['aviator', 'field of this occupation', {'concept': 'conflict'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:conflict . resource:fighter_pilot property:field_of_this_occupation ?w }
[]
Simple Question (Coreferenced)
USER
No, I meant fighter pilot. Could you tell me the answer for that?
(Q618694,P425,c(Q180684))
Q618694
['Q618694', 'P425', {'concept': 'Q180684'}]
['fighter pilot', 'field of this occupation', {'concept': 'conflict'}]
[]
Q830494
SYSTEM
Dogfight
Q830494
(Q618694,P425,c(Q180684))
action filter_type
action find
entity Q618694
relation P425
type Q180684
[ANSWER] has that one as the associated field of occupation
['Q618694', 'P425', {'concept': 'Q180684'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q180684 . resource:Q618694 property:P425 ?w }
Dogfight
Dogfight has that one as the associated field of occupation
Dogfight
action filter_type
action find
entity fighter pilot
relation field of this occupation
type conflict
['fighter pilot', 'field of this occupation', {'concept': 'conflict'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:conflict . resource:fighter_pilot property:field_of_this_occupation ?w }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q198 Q180684
USER
How many wars are atleast 2 conflicts a portion of ?
(c(Q180684),P361,c(Q198))
action count
action atleast
action find_reverse_tuple_counts
relation P361
type Q198
type Q180684
value 2
[{'concept': 'Q180684'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:P361 ?f . ?f rdf:type ontology:Q198 . ?z rdf:type ontology:Q180684 } GROUP BY ?f } . FILTER ( ?k >= 2 ) }
action count
action atleast
action find_reverse_tuple_counts
relation part of
type war
type conflict
value 2
[{'concept': 'conflict'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:part_of ?f . ?f rdf:type ontology:war . ?z rdf:type ontology:conflict } GROUP BY ?f } . FILTER ( ?k >= 2 ) }
[]
war conflict
SYSTEM
6
Q3778746 Q362 Q178810 Q545449 Q17507684 Q179975
(c(Q180684),P361,c(Q198))
action count
action atleast
action find_reverse_tuple_counts
relation P361
type Q198
type Q180684
value 2
[ANSWER]
[{'concept': 'Q180684'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:P361 ?f . ?f rdf:type ontology:Q198 . ?z rdf:type ontology:Q180684 } GROUP BY ?f } . FILTER ( ?k >= 2 ) }
Sioux Wars World War II Syrian Civil War Iraq War military intervention against ISIL Chinese Civil War
6
action count
action atleast
action find_reverse_tuple_counts
relation part of
type war
type conflict
value 2
[{'concept': 'conflict'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:part_of ?f . ?f rdf:type ontology:war . ?z rdf:type ontology:conflict } GROUP BY ?f } . FILTER ( ?k >= 2 ) }
[]