Simple Question (Direct)
Simple Question
Q74429
P102
Q7210356
USER
Which political organization is Philipp Schmitt a member of ?
(Q74429,P102,c(Q7210356))
action filter_type
action find
entity Q74429
relation P102
type Q7210356
['Q74429', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q74429 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Philipp Schmitt
action filter_type
action find
entity Philipp Schmitt
relation member of political party
type political organization
['Philipp Schmitt', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Philipp_Schmitt property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
political organization
Q7320
SYSTEM
Nazi Party
Q7320
(Q74429,P102,c(Q7210356))
action filter_type
action find
entity Q74429
relation P102
type Q7210356
Party [ANSWER] is Philipp Schmitt a member of
['Q74429', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q74429 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Nazi Party
Party Nazi Party is Philipp Schmitt a member of
Nazi Party
action filter_type
action find
entity Philipp Schmitt
relation member of political party
type political organization
['Philipp Schmitt', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Philipp_Schmitt property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7320
P1142
Q7257
USER
Which ideology does that political organization believe in ?
(Q7320,P1142,c(Q7257))
action filter_type
action find
entity Q7320
relation P1142
type Q7257
['Q7320', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?i WHERE { resource:Q7320 property:P1142 ?i . ?i rdf:type ontology:Q7257 }
Nazi Party
action filter_type
action find
entity Nazi Party
relation political ideology
type ideology
['Nazi Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?i WHERE { resource:Nazi_Party property:political_ideology ?i . ?i rdf:type ontology:ideology }
[]
ideology
Q7310
SYSTEM
Nazism
Q7310
(Q7320,P1142,c(Q7257))
action filter_type
action find
entity Q7320
relation P1142
type Q7257
That political organization believes in [ANSWER]
['Q7320', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?i WHERE { resource:Q7320 property:P1142 ?i . ?i rdf:type ontology:Q7257 }
Nazism
That political organization believes in Nazism
Nazism
action filter_type
action find
entity Nazi Party
relation political ideology
type ideology
['Nazi Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?i WHERE { resource:Nazi_Party property:political_ideology ?i . ?i rdf:type ontology:ideology }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q211201 Q7310
P1142
Q7210356
USER
Which political organizations have the ideology as Nazism or soviet ?
OR((c(Q7210356),P1142,Q7310), (c(Q7210356),P1142,Q211201))
action filter_type
action union
action find_reverse
entity Q7310
relation P1142
action find_reverse
entity Q211201
relation P1142
type Q7210356
{'OR': [[{'concept': 'Q7210356'}, 'P1142', 'Q7310'], [{'concept': 'Q7210356'}, 'P1142', 'Q211201']]}
SELECT DISTINCT ?r WHERE { { { ?r property:P1142 resource:Q211201 } UNION { ?r property:P1142 resource:Q7310 } } . ?r rdf:type ontology:Q7210356 }
soviet Nazism
action filter_type
action union
action find_reverse
entity Nazism
relation political ideology
action find_reverse
entity soviet
relation political ideology
type political organization
{'OR': [[{'concept': 'political organization'}, 'political ideology', 'Nazism'], [{'concept': 'political organization'}, 'political ideology', 'soviet']]}
SELECT DISTINCT ?r WHERE { { { ?r property:political_ideology resource:soviet } UNION { ?r property:political_ideology resource:Nazism } } . ?r rdf:type ontology:political_organization }
[]
political organization
Q177673 Q977610 Q882551 Q160159 Q9053031 Q7320 Q6064179 Q4894751 Q707428 Q1073799
SYSTEM
Some of them are National Socialist Front, National Socialist Society, Free German Workers' Party, Arrow Cross Party, National Will Organization, Nazi Party, Costa Rican National Socialist Party, National Union of Greece, National Socialist Workers' Party of Denmark, National Socialist Movement
Q2663855 Q160159 Q1169231 Q7320 Q177673 Q3366157 Q6064179 Q476109 Q2337095 Q368661 Q463899 Q1073799 Q2498858 Q2053757 Q882551 Q4521713 Q172659 Q3366521 Q666743 Q5266316 Q9053031 Q3564500 Q708012 Q4314774 Q4894751 Q166571 Q977610 Q4890622 Q4947409 Q156019 Q707428 Q6648391 Q1450993 Q16185932 Q10604974 Q3299592
OR((c(Q7210356),P1142,Q7310), (c(Q7210356),P1142,Q211201))
action filter_type
action union
action find_reverse
entity Q7310
relation P1142
action find_reverse
entity Q211201
relation P1142
type Q7210356
[ANSWERS] have the ideology as Nazism or soviet
{'OR': [[{'concept': 'Q7210356'}, 'P1142', 'Q7310'], [{'concept': 'Q7210356'}, 'P1142', 'Q211201']]}
SELECT DISTINCT ?r WHERE { { { ?r property:P1142 resource:Q211201 } UNION { ?r property:P1142 resource:Q7310 } } . ?r rdf:type ontology:Q7210356 }
Workers' Party Arrow Cross Party Nordic Reich Party Nazi Party National Socialist Front National Unity Party Costa Rican National Socialist Party National Socialist Dutch Workers Party Flemish National Union National-Socialist Patriotic Organisation Volksdeutsche Bewegung National Socialist Movement French Popular Party World Union of National Socialists Free German Workers' Party Swedish National Socialist Farmers' and Workers' Party German National Movement in Liechtenstein Swedish National Socialist Party National Socialist Workers' Party Deutscher Volksverband National Will Organization Greek National Socialist Party Socialist Reich Party National Socialist Party of New Zealand National Union of Greece British Movement National Socialist Society European Nation State Bosnian Movement of National Pride National Democratic Party of Germany National Socialist Workers' Party of Denmark Lithuanian National Union National Socialist Bloc Donetsk Republic New Swedish People's League New Triumph Hitler
National Socialist Front, National Socialist Society, Free German Workers' Party, Arrow Cross Party, National Will Organization, Nazi Party, Costa Rican National Socialist Party, National Union of Greece, National Socialist Workers' Party of Denmark and National Socialist Movement have the ideology as Nazism or soviet
National Socialist Front National Socialist Society Free German Workers' Party Arrow Cross Party National Will Organization Nazi Party Costa Rican National Socialist Party National Union of Greece National Socialist Workers' Party of Denmark National Socialist Movement
action filter_type
action union
action find_reverse
entity Nazism
relation political ideology
action find_reverse
entity soviet
relation political ideology
type political organization
{'OR': [[{'concept': 'political organization'}, 'political ideology', 'Nazism'], [{'concept': 'political organization'}, 'political ideology', 'soviet']]}
SELECT DISTINCT ?r WHERE { { { ?r property:political_ideology resource:soviet } UNION { ?r property:political_ideology resource:Nazism } } . ?r rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q102639 Q1073799
P47 P159
Q56061
USER
Which administrative territories are the head office for National Socialist Movement located or share border with Cerignale ?
OR((Q1073799,P159,c(Q56061)), (Q102639,P47,c(Q56061)))
action filter_type
action union
action find
entity Q1073799
relation P159
action find
entity Q102639
relation P47
type Q56061
{'OR': [['Q1073799', 'P159', {'concept': 'Q56061'}], ['Q102639', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q102639 property:P47 ?v } UNION { resource:Q1073799 property:P159 ?v } } . ?v rdf:type ontology:Q56061 }
Cerignale National Socialist Movement
action filter_type
action union
action find
entity National Socialist Movement
relation headquarters location
action find
entity Cerignale
relation shares border with
type administrative territorial entity
{'OR': [['National Socialist Movement', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Cerignale', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Cerignale property:shares_border_with ?v } UNION { resource:National_Socialist_Movement property:headquarters_location ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q103026 Q102647 Q102727 Q12439
SYSTEM
Zerba, Corte Brugnatella, Ferriere, Detroit
Q103026 Q102647 Q102727 Q12439
OR((Q1073799,P159,c(Q56061)), (Q102639,P47,c(Q56061)))
action filter_type
action union
action find
entity Q1073799
relation P159
action find
entity Q102639
relation P47
type Q56061
[ANSWERS] are the head office for National Socialist Movement located or share border with Cerignale
{'OR': [['Q1073799', 'P159', {'concept': 'Q56061'}], ['Q102639', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q102639 property:P47 ?v } UNION { resource:Q1073799 property:P159 ?v } } . ?v rdf:type ontology:Q56061 }
Zerba Corte Brugnatella Ferriere Detroit
Zerba, Corte Brugnatella, Ferriere and Detroit are the head office for National Socialist Movement located or share border with Cerignale
Zerba Corte Brugnatella Ferriere Detroit
action filter_type
action union
action find
entity National Socialist Movement
relation headquarters location
action find
entity Cerignale
relation shares border with
type administrative territorial entity
{'OR': [['National Socialist Movement', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Cerignale', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Cerignale property:shares_border_with ?v } UNION { resource:National_Socialist_Movement property:headquarters_location ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories have an adjacent border with that administrative territory ?
(c(Q15617994),P47,Q102647)
[{'concept': 'Q15617994'}, 'P47', 'Q102647']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q102647 . ?z rdf:type ontology:Q15617994 }
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Corte Brugnatella']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Corte_Brugnatella . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q12439
SYSTEM
Did you mean Detroit ?
(c(Q15617994),P47,Q103026) (c(Q15617994),P47,Q102647) (c(Q15617994),P47,Q102727) (c(Q15617994),P47,Q12439)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q103026'] [{'concept': 'Q15617994'}, 'P47', 'Q102647'] [{'concept': 'Q15617994'}, 'P47', 'Q102727'] [{'concept': 'Q15617994'}, 'P47', 'Q12439']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q102647 . ?z rdf:type ontology:Q15617994 }
Did you mean Detroit ?
Detroit
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Zerba'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Corte Brugnatella'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ferriere'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Detroit']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Corte_Brugnatella . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Corte Brugnatella. Could you tell me the answer for that?
(c(Q15617994),P47,Q102647)
Q102647
[{'concept': 'Q15617994'}, 'P47', 'Q102647']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Corte Brugnatella']
[]
SYSTEM
4
Q11498 Q39799 Q102639 Q102643
(c(Q15617994),P47,Q102647)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q102647']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q102647 . ?z rdf:type ontology:Q15617994 }
Bobbio Brallo di Pregola Cerignale Coli, Emilia-Romagna
4
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Corte Brugnatella']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Corte_Brugnatella . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q12439 Q846
P127
Q41176
USER
How many buildings belongs to Detroit or Qatar ?
(c(Q41176),P127,Q12439) (c(Q41176),P127,Q846)
action count
action union
action filter_type
action find_reverse
entity Q12439
relation P127
type Q41176
action filter_type
action find_reverse
entity Q846
relation P127
type Q41176
[{'concept': 'Q41176'}, 'P127', 'Q12439'] [{'concept': 'Q41176'}, 'P127', 'Q846']
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { ?u property:P127 ?e . VALUES ( ?e ) { ( resource:Q12439 ) ( resource:Q846 ) } }
Detroit Qatar
action count
action union
action filter_type
action find_reverse
entity Detroit
relation owned by
type building
action filter_type
action find_reverse
entity Qatar
relation owned by
type building
[{'concept': 'building'}, 'owned by', 'Detroit'] [{'concept': 'building'}, 'owned by', 'Qatar']
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { ?u property:owned_by ?e . VALUES ( ?e ) { ( resource:Detroit ) ( resource:Qatar ) } }
[]
building
SYSTEM
2
Q18536 Q168579
(c(Q41176),P127,Q12439) (c(Q41176),P127,Q846)
action count
action union
action filter_type
action find_reverse
entity Q12439
relation P127
type Q41176
action filter_type
action find_reverse
entity Q846
relation P127
type Q41176
[ANSWER]
[{'concept': 'Q41176'}, 'P127', 'Q12439'] [{'concept': 'Q41176'}, 'P127', 'Q846']
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { ?u property:P127 ?e . VALUES ( ?e ) { ( resource:Q12439 ) ( resource:Q846 ) } }
The Shard Joe Louis Arena
2
action count
action union
action filter_type
action find_reverse
entity Detroit
relation owned by
type building
action filter_type
action find_reverse
entity Qatar
relation owned by
type building
[{'concept': 'building'}, 'owned by', 'Detroit'] [{'concept': 'building'}, 'owned by', 'Qatar']
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { ?u property:owned_by ?e . VALUES ( ?e ) { ( resource:Detroit ) ( resource:Qatar ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q56061 Q2342494 Q15416
USER
Which administrative territories are the narrative locations of atleast 736 collectables and television programs ?
(c(Q2342494)|c(Q15416),P840,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
value 736
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?g ) WHERE { { ?i rdf:type ontology:Q56061 . ?c rdf:type ontology:Q2342494 . ?c property:P840 ?i } UNION { ?i rdf:type ontology:Q56061 . ?c rdf:type ontology:Q15416 . ?c property:P840 ?i } } GROUP BY ?i } . FILTER ( ?g >= 736 ) }
action atleast
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
value 736
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?g ) WHERE { { ?i rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:collectable . ?c property:narrative_location ?i } UNION { ?i rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:television_program . ?c property:narrative_location ?i } } GROUP BY ?i } . FILTER ( ?g >= 736 ) }
[]
administrative territorial entity collectable television program
Q84 Q60
SYSTEM
London, New York City
Q84 Q60
(c(Q2342494)|c(Q15416),P840,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
value 736
[ANSWERS] are the narrative locations of atleast 736 collectables and television programs
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?g ) WHERE { { ?i rdf:type ontology:Q56061 . ?c rdf:type ontology:Q2342494 . ?c property:P840 ?i } UNION { ?i rdf:type ontology:Q56061 . ?c rdf:type ontology:Q15416 . ?c property:P840 ?i } } GROUP BY ?i } . FILTER ( ?g >= 736 ) }
London New York City
London and New York City are the narrative locations of atleast 736 collectables and television programs
London New York City
action atleast
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
value 736
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?g ) WHERE { { ?i rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:collectable . ?c property:narrative_location ?i } UNION { ?i rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:television_program . ?c property:narrative_location ?i } } GROUP BY ?i } . FILTER ( ?g >= 736 ) }
[]