Simple Question (Direct)
Simple Question
Q318082
P47
Q20667921
USER
Which french administrative divisions share border with Lunel ?
(Q318082,P47,c(Q20667921))
action filter_type
action find
entity Q318082
relation P47
type Q20667921
['Q318082', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q20667921 . resource:Q318082 property:P47 ?a }
Lunel
action filter_type
action find
entity Lunel
relation shares border with
type type of french administrative division
['Lunel', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:type_of_french_administrative_division . resource:Lunel property:shares_border_with ?a }
[]
type of french administrative division
Q204505 Q243915 Q1408439
SYSTEM
Lunel-Viel, Aimargues, Marsillargues
Q204505 Q179135 Q196286 Q243915 Q75014 Q1408439 Q204605 Q1154714
(Q318082,P47,c(Q20667921))
action filter_type
action find
entity Q318082
relation P47
type Q20667921
[ANSWERS] share border with Lunel
['Q318082', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q20667921 . resource:Q318082 property:P47 ?a }
Lunel-Viel Saturargues Saint-Just Aimargues Gallargues-le-Montueux Marsillargues Villetelle Saint-Nazaire-de-Pézan
Lunel-Viel, Aimargues and Marsillargues share border with Lunel
Lunel-Viel Aimargues Marsillargues
action filter_type
action find
entity Lunel
relation shares border with
type type of french administrative division
['Lunel', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:type_of_french_administrative_division . resource:Lunel property:shares_border_with ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q318082
P1376
Q20667921
USER
Which french administrative division has Lunel has its first city ?
(Q318082,P1376,c(Q20667921))
action filter_type
action find
entity Q318082
relation P1376
type Q20667921
['Q318082', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q318082 property:P1376 ?o . ?o rdf:type ontology:Q20667921 }
Lunel
action filter_type
action find
entity Lunel
relation capital of
type type of french administrative division
['Lunel', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:Lunel property:capital_of ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1726006
SYSTEM
canton of Lunel
Q1726006
(Q318082,P1376,c(Q20667921))
action filter_type
action find
entity Q318082
relation P1376
type Q20667921
[ANSWER] has Lunel has its first city
['Q318082', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q318082 property:P1376 ?o . ?o rdf:type ontology:Q20667921 }
canton of Lunel
Canton of Lunel has Lunel has its first city
canton of Lunel
action filter_type
action find
entity Lunel
relation capital of
type type of french administrative division
['Lunel', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:Lunel property:capital_of ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q184023
Q20667921
USER
And how about Tarbes?
(Q184023,P1376,c(Q20667921))
action filter_type
action find
entity Q184023
relation P1376
type Q20667921
['Q184023', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q184023 property:P1376 ?m . ?m rdf:type ontology:Q20667921 }
Tarbes
action filter_type
action find
entity Tarbes
relation capital of
type type of french administrative division
['Tarbes', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Tarbes property:capital_of ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q477543 Q1727556 Q1484384
SYSTEM
canton of Tarbes-2, canton of Tarbes-1, canton of Tarbes-3
Q477543 Q1727556 Q1484384 Q1727565 Q1727564
(Q184023,P1376,c(Q20667921))
action filter_type
action find
entity Q184023
relation P1376
type Q20667921
[ANSWERS]
['Q184023', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q184023 property:P1376 ?m . ?m rdf:type ontology:Q20667921 }
canton of Tarbes-2 canton of Tarbes-1 canton of Tarbes-3 canton of Tarbes-5 Canton of Tarbes-4
canton of Tarbes-2 canton of Tarbes-1 canton of Tarbes-3
action filter_type
action find
entity Tarbes
relation capital of
type type of french administrative division
['Tarbes', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Tarbes property:capital_of ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q184023
P1376
Q20667921
USER
Are Tarbes the county seat for those ones ?
(Q184023,P1376,Q477543) (Q184023,P1376,Q1727556) (Q184023,P1376,Q1484384)
action is_in
entity prev_answer
action find
entity Q184023
relation P1376
['Q184023', 'P1376', 'Q477543'] ['Q184023', 'P1376', 'Q1727556'] ['Q184023', 'P1376', 'Q1484384']
ASK WHERE { resource:Q184023 property:P1376 ?a . VALUES ( ?a ) { ( resource:Q477543 ) ( resource:Q1727556 ) ( resource:Q1484384 ) } }
Tarbes
action is_in
entity prev_answer
action find
entity Tarbes
relation capital of
['Tarbes', 'capital of', 'canton of Tarbes-2'] ['Tarbes', 'capital of', 'canton of Tarbes-1'] ['Tarbes', 'capital of', 'canton of Tarbes-3']
ASK WHERE { resource:Tarbes property:capital_of ?a . VALUES ( ?a ) { ( resource:canton_of_Tarbes-2 ) ( resource:canton_of_Tarbes-1 ) ( resource:canton_of_Tarbes-3 ) } }
[]
type of french administrative division
SYSTEM
YES
(Q184023,P1376,Q477543) (Q184023,P1376,Q1727556) (Q184023,P1376,Q1484384)
action is_in
entity prev_answer
action find
entity Q184023
relation P1376
[ANSWER]
['Q184023', 'P1376', 'Q477543'] ['Q184023', 'P1376', 'Q1727556'] ['Q184023', 'P1376', 'Q1484384']
ASK WHERE { resource:Q184023 property:P1376 ?a . VALUES ( ?a ) { ( resource:Q477543 ) ( resource:Q1727556 ) ( resource:Q1484384 ) } }
Yes
action is_in
entity prev_answer
action find
entity Tarbes
relation capital of
['Tarbes', 'capital of', 'canton of Tarbes-2'] ['Tarbes', 'capital of', 'canton of Tarbes-1'] ['Tarbes', 'capital of', 'canton of Tarbes-3']
ASK WHERE { resource:Tarbes property:capital_of ?a . VALUES ( ?a ) { ( resource:canton_of_Tarbes-2 ) ( resource:canton_of_Tarbes-1 ) ( resource:canton_of_Tarbes-3 ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q20667921 Q16521 Q502895
USER
How many french administrative divisions are atleast 1 taxons or people named after ?
(c(Q16521)|c(Q502895),P138,c(Q20667921))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q16521
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q502895
value 1
[[{'concept': 'Q16521'}, {'concept': 'Q502895'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?d ) WHERE { VALUES ( ?v ) { ( ontology:Q16521 ) ( ontology:Q502895 ) } . ?n rdf:type ?v } GROUP BY ?b } . FILTER ( ?d >= 1 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type taxon
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type common name
value 1
[[{'concept': 'taxon'}, {'concept': 'common name'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?d ) WHERE { VALUES ( ?v ) { ( ontology:taxon ) ( ontology:common_name ) } . ?n rdf:type ?v } GROUP BY ?b } . FILTER ( ?d >= 1 ) }
[]
type of french administrative division taxon common name
SYSTEM
3
Q208793 Q14112 Q165090
(c(Q16521)|c(Q502895),P138,c(Q20667921))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q16521
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q502895
value 1
[ANSWER]
[[{'concept': 'Q16521'}, {'concept': 'Q502895'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?d ) WHERE { VALUES ( ?v ) { ( ontology:Q16521 ) ( ontology:Q502895 ) } . ?n rdf:type ?v } GROUP BY ?b } . FILTER ( ?d >= 1 ) }
Saint-Omer Corsica Chambéry
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type taxon
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type common name
value 1
[[{'concept': 'taxon'}, {'concept': 'common name'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?d ) WHERE { VALUES ( ?v ) { ( ontology:taxon ) ( ontology:common_name ) } . ?n rdf:type ?v } GROUP BY ?b } . FILTER ( ?d >= 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q28389 Q204505
P19 P106
Q502895
USER
Which people were born at Lunel-Viel and have the profession as screenwriter ?
AND((c(Q502895),P19,Q204505), (c(Q502895),P106,Q28389))
action filter_type
action intersection
action find_reverse
entity Q204505
relation P19
action find_reverse
entity Q28389
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q204505'], [{'concept': 'Q502895'}, 'P106', 'Q28389']]}
SELECT DISTINCT ?t WHERE { ?t property:P106 resource:Q28389 . ?t property:P19 resource:Q204505 . ?t rdf:type ontology:Q502895 }
screenwriter Lunel-Viel
action filter_type
action intersection
action find_reverse
entity Lunel-Viel
relation place of birth
action find_reverse
entity screenwriter
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Lunel-Viel'], [{'concept': 'common name'}, 'occupation', 'screenwriter']]}
SELECT DISTINCT ?t WHERE { ?t property:occupation resource:screenwriter . ?t property:place_of_birth resource:Lunel-Viel . ?t rdf:type ontology:common_name }
[]
common name
Q2354287
SYSTEM
Georges Rouquier
Q2354287
AND((c(Q502895),P19,Q204505), (c(Q502895),P106,Q28389))
action filter_type
action intersection
action find_reverse
entity Q204505
relation P19
action find_reverse
entity Q28389
relation P106
type Q502895
[ANSWER] was born at Lunel-Viel and have the profession as screenwriter
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q204505'], [{'concept': 'Q502895'}, 'P106', 'Q28389']]}
SELECT DISTINCT ?t WHERE { ?t property:P106 resource:Q28389 . ?t property:P19 resource:Q204505 . ?t rdf:type ontology:Q502895 }
Georges Rouquier
Georges Rouquier was born at Lunel-Viel and have the profession as screenwriter
Georges Rouquier
action filter_type
action intersection
action find_reverse
entity Lunel-Viel
relation place of birth
action find_reverse
entity screenwriter
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Lunel-Viel'], [{'concept': 'common name'}, 'occupation', 'screenwriter']]}
SELECT DISTINCT ?t WHERE { ?t property:occupation resource:screenwriter . ?t property:place_of_birth resource:Lunel-Viel . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2354287
P58
Q838948
USER
Which work of art is that person a screenwriter of ?
(c(Q838948),P58,Q2354287)
action filter_type
action find_reverse
entity Q2354287
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q2354287']
SELECT DISTINCT ?z WHERE { ?z property:P58 resource:Q2354287 . ?z rdf:type ontology:Q838948 }
Georges Rouquier
action filter_type
action find_reverse
entity Georges Rouquier
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Georges Rouquier']
SELECT DISTINCT ?z WHERE { ?z property:screenwriter resource:Georges_Rouquier . ?z rdf:type ontology:work_of_art }
[]
work of art
Q2904318
SYSTEM
Biquefarre
Q2904318
(c(Q838948),P58,Q2354287)
action filter_type
action find_reverse
entity Q2354287
relation P58
type Q838948
[ANSWER] is that person a screenwriter of
[{'concept': 'Q838948'}, 'P58', 'Q2354287']
SELECT DISTINCT ?z WHERE { ?z property:P58 resource:Q2354287 . ?z rdf:type ontology:Q838948 }
Biquefarre
Biquefarre is that person a screenwriter of
Biquefarre
action filter_type
action find_reverse
entity Georges Rouquier
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Georges Rouquier']
SELECT DISTINCT ?z WHERE { ?z property:screenwriter resource:Georges_Rouquier . ?z rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2904318
P166
Q618779
USER
Which award was received by that work of art ?
(Q2904318,P166,c(Q618779))
action filter_type
action find
entity Q2904318
relation P166
type Q618779
['Q2904318', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q2904318 property:P166 ?j . ?j rdf:type ontology:Q618779 }
Biquefarre
action filter_type
action find
entity Biquefarre
relation award received
type award
['Biquefarre', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Biquefarre property:award_received ?j . ?j rdf:type ontology:award }
[]
award
Q944480
SYSTEM
Special Jury Prize
Q944480
(Q2904318,P166,c(Q618779))
action filter_type
action find
entity Q2904318
relation P166
type Q618779
The [ANSWER] was received by that work of art
['Q2904318', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q2904318 property:P166 ?j . ?j rdf:type ontology:Q618779 }
Special Jury Prize
The Special Jury Prize was received by that work of art
Special Jury Prize
action filter_type
action find
entity Biquefarre
relation award received
type award
['Biquefarre', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Biquefarre property:award_received ?j . ?j rdf:type ontology:award }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1969862 Q2904318
P166
Q618779
USER
Or Boris Vannikov?
OR((Q2904318,P166,c(Q618779)), (Q1969862,P166,c(Q618779)))
action filter_type
action union
action find
entity Q2904318
relation P166
action find
entity Q1969862
relation P166
type Q618779
{'OR': [['Q2904318', 'P166', {'concept': 'Q618779'}], ['Q1969862', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1969862 property:P166 ?e } UNION { resource:Q2904318 property:P166 ?e } } . ?e rdf:type ontology:Q618779 }
Boris Vannikov Biquefarre
action filter_type
action union
action find
entity Biquefarre
relation award received
action find
entity Boris Vannikov
relation award received
type award
{'OR': [['Biquefarre', 'award received', {'concept': 'award'}], ['Boris Vannikov', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Boris_Vannikov property:award_received ?e } UNION { resource:Biquefarre property:award_received ?e } } . ?e rdf:type ontology:award }
[]
award
Q208167 Q185493 Q1081449 Q944480
SYSTEM
Hero of Socialist Labour, Order of Lenin, Medal "For the Victory over Japan", Special Jury Prize
Q208167 Q185493 Q1081449 Q944480
OR((Q2904318,P166,c(Q618779)), (Q1969862,P166,c(Q618779)))
action filter_type
action union
action find
entity Q2904318
relation P166
action find
entity Q1969862
relation P166
type Q618779
[ANSWERS]
{'OR': [['Q2904318', 'P166', {'concept': 'Q618779'}], ['Q1969862', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1969862 property:P166 ?e } UNION { resource:Q2904318 property:P166 ?e } } . ?e rdf:type ontology:Q618779 }
Hero of Socialist Labour Order of Lenin Medal "For the Victory over Japan" Special Jury Prize
Hero of Socialist Labour Order of Lenin Medal "For the Victory over Japan" Special Jury Prize
action filter_type
action union
action find
entity Biquefarre
relation award received
action find
entity Boris Vannikov
relation award received
type award
{'OR': [['Biquefarre', 'award received', {'concept': 'award'}], ['Boris Vannikov', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Boris_Vannikov property:award_received ?e } UNION { resource:Biquefarre property:award_received ?e } } . ?e rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1969862
P102
Q7278
USER
Which political party is that person a member of ?
(Q208167,P102,c(Q7278)) (Q185493,P102,c(Q7278)) (Q1081449,P102,c(Q7278)) (Q944480,P102,c(Q7278))
action filter_type
action find
entity Q1969862
relation P102
type Q7278
['Q208167', 'P102', {'concept': 'Q7278'}] ['Q185493', 'P102', {'concept': 'Q7278'}] ['Q1081449', 'P102', {'concept': 'Q7278'}] ['Q944480', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?w WHERE { resource:Q1969862 property:P102 ?w . ?w rdf:type ontology:Q7278 }
Boris Vannikov
action filter_type
action find
entity Boris Vannikov
relation member of political party
type political party
['Hero of Socialist Labour', 'member of political party', {'concept': 'political party'}] ['Order of Lenin', 'member of political party', {'concept': 'political party'}] ['Medal "For the Victory over Japan"', 'member of political party', {'concept': 'political party'}] ['Special Jury Prize', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?w WHERE { resource:Boris_Vannikov property:member_of_political_party ?w . ?w rdf:type ontology:political_party }
[]
political party
Q79854
SYSTEM
Communist Party of the Soviet Union
Q79854
(Q208167,P102,c(Q7278)) (Q185493,P102,c(Q7278)) (Q1081449,P102,c(Q7278)) (Q944480,P102,c(Q7278))
action filter_type
action find
entity Q1969862
relation P102
type Q7278
The [ANSWER] is that person a member of
['Q208167', 'P102', {'concept': 'Q7278'}] ['Q185493', 'P102', {'concept': 'Q7278'}] ['Q1081449', 'P102', {'concept': 'Q7278'}] ['Q944480', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?w WHERE { resource:Q1969862 property:P102 ?w . ?w rdf:type ontology:Q7278 }
Communist Party of the Soviet Union
The Communist Party of the Soviet Union is that person a member of
Communist Party of the Soviet Union
action filter_type
action find
entity Boris Vannikov
relation member of political party
type political party
['Hero of Socialist Labour', 'member of political party', {'concept': 'political party'}] ['Order of Lenin', 'member of political party', {'concept': 'political party'}] ['Medal "For the Victory over Japan"', 'member of political party', {'concept': 'political party'}] ['Special Jury Prize', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?w WHERE { resource:Boris_Vannikov property:member_of_political_party ?w . ?w rdf:type ontology:political_party }
[]