Simple Question (Direct)
Simple Question
Q723444
P102
Q7210356
USER
Which political organization is Nicholas F. Brady a member of ?
(Q723444,P102,c(Q7210356))
action filter_type
action find
entity Q723444
relation P102
type Q7210356
['Q723444', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q723444 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Nicholas F. Brady
action filter_type
action find
entity Nicholas F. Brady
relation member of political party
type political organization
['Nicholas F. Brady', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Nicholas_F._Brady property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q723444,P102,c(Q7210356))
action filter_type
action find
entity Q723444
relation P102
type Q7210356
The [ANSWER] is Nicholas F. Brady a member of
['Q723444', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q723444 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Republican Party
The Republican Party is Nicholas F. Brady a member of
Republican Party
action filter_type
action find
entity Nicholas F. Brady
relation member of political party
type political organization
['Nicholas F. Brady', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Nicholas_F._Brady property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q723444
P463
Q811430
USER
Which construction was that person a member of ?
(Q29468,P463,c(Q811430))
action filter_type
action find
entity Q723444
relation P463
type Q811430
['Q29468', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q811430 . resource:Q723444 property:P463 ?m }
Nicholas F. Brady
action filter_type
action find
entity Nicholas F. Brady
relation member of
type construction
['Republican Party', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:construction . resource:Nicholas_F._Brady property:member_of ?m }
[]
construction
Q463303
SYSTEM
American Academy of Arts and Sciences
Q463303
(Q29468,P463,c(Q811430))
action filter_type
action find
entity Q723444
relation P463
type Q811430
[ANSWER] was that person a member of
['Q29468', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q811430 . resource:Q723444 property:P463 ?m }
American Academy of Arts and Sciences
American Academy of Arts and Sciences was that person a member of
American Academy of Arts and Sciences
action filter_type
action find
entity Nicholas F. Brady
relation member of
type construction
['Republican Party', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:construction . resource:Nicholas_F._Brady property:member_of ?m }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q463303 Q30 Q81730
P17
Q15617994
USER
Is that construction located in United States of America and Torchiara ?
(Q463303,P17,Q30) (Q463303,P17,Q81730)
action is_in
entity Q463303
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q81730
relation P17
['Q463303', 'P17', 'Q30'] ['Q463303', 'P17', 'Q81730']
ASK WHERE { resource:Q463303 property:P17 resource:Q30 . resource:Q463303 property:P17 resource:Q81730 }
American Academy of Arts and Sciences United States of America Torchiara
action is_in
entity American Academy of Arts and Sciences
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Torchiara
relation country
['American Academy of Arts and Sciences', 'country', 'United States of America'] ['American Academy of Arts and Sciences', 'country', 'Torchiara']
ASK WHERE { resource:American_Academy_of_Arts_and_Sciences property:country resource:United_States_of_America . resource:American_Academy_of_Arts_and_Sciences property:country resource:Torchiara }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q463303,P17,Q30) (Q463303,P17,Q81730)
action is_in
entity Q463303
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q81730
relation P17
[ANSWER]
['Q463303', 'P17', 'Q30'] ['Q463303', 'P17', 'Q81730']
ASK WHERE { resource:Q463303 property:P17 resource:Q30 . resource:Q463303 property:P17 resource:Q81730 }
YES and NO respectively
action is_in
entity American Academy of Arts and Sciences
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Torchiara
relation country
['American Academy of Arts and Sciences', 'country', 'United States of America'] ['American Academy of Arts and Sciences', 'country', 'Torchiara']
ASK WHERE { resource:American_Academy_of_Arts_and_Sciences property:country resource:United_States_of_America . resource:American_Academy_of_Arts_and_Sciences property:country resource:Torchiara }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29468
P710
Q40231
USER
Which election has Republican Party as its participant ?
(c(Q40231),P710,Q29468)
action filter_type
action find_reverse
entity Q29468
relation P710
type Q40231
[{'concept': 'Q40231'}, 'P710', 'Q29468']
SELECT DISTINCT ?s WHERE { ?s property:P710 resource:Q29468 . ?s rdf:type ontology:Q40231 }
Republican Party
action filter_type
action find_reverse
entity Republican Party
relation participant
type election
[{'concept': 'election'}, 'participant', 'Republican Party']
SELECT DISTINCT ?s WHERE { ?s property:participant resource:Republican_Party . ?s rdf:type ontology:election }
[]
election
Q17092711
SYSTEM
Republican Party presidential primaries, 2016
Q17092711
(c(Q40231),P710,Q29468)
action filter_type
action find_reverse
entity Q29468
relation P710
type Q40231
[ANSWER] has Republican Party as its participant
[{'concept': 'Q40231'}, 'P710', 'Q29468']
SELECT DISTINCT ?s WHERE { ?s property:P710 resource:Q29468 . ?s rdf:type ontology:Q40231 }
Republican Party presidential primaries, 2016
Republican Party presidential primaries, 2016 has Republican Party as its participant
Republican Party presidential primaries, 2016
action filter_type
action find_reverse
entity Republican Party
relation participant
type election
[{'concept': 'election'}, 'participant', 'Republican Party']
SELECT DISTINCT ?s WHERE { ?s property:participant resource:Republican_Party . ?s rdf:type ontology:election }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29468
P361
Q7210356
USER
Which political organizations are a component of Republican Party ?
(c(Q7210356),P361,Q29468)
action filter_type
action find_reverse
entity Q29468
relation P361
type Q7210356
[{'concept': 'Q7210356'}, 'P361', 'Q29468']
SELECT DISTINCT ?a WHERE { ?a property:P361 resource:Q29468 . ?a rdf:type ontology:Q7210356 }
Republican Party
action filter_type
action find_reverse
entity Republican Party
relation part of
type political organization
[{'concept': 'political organization'}, 'part of', 'Republican Party']
SELECT DISTINCT ?a WHERE { ?a property:part_of resource:Republican_Party . ?a rdf:type ontology:political_organization }
[]
political organization
Q3366683 Q7314631 Q1359302
SYSTEM
Illinois Republican Party, Republican Party, Half-Breed
Q7314655 Q1359302 Q7314640 Q1558808 Q7314652 Q11833539 Q3174289 Q6023387 Q7314631 Q3366683 Q5684363 Q7055038
(c(Q7210356),P361,Q29468)
action filter_type
action find_reverse
entity Q29468
relation P361
type Q7210356
Party [ANSWERS] are a component of Republican Party
[{'concept': 'Q7210356'}, 'P361', 'Q29468']
SELECT DISTINCT ?a WHERE { ?a property:P361 resource:Q29468 . ?a rdf:type ontology:Q7210356 }
Republican Party of Iowa Half-Breed Republican Party of Arkansas Stalwarts Republican Party of Guam Radical Republican Vermont Republican Party Indiana Republican Party Republican Party Illinois Republican Party Hawaiʻi Republican Party North Dakota Republican Party
Party Illinois Republican Party, Republican Party and Half-Breed are a component of Republican Party
Illinois Republican Party Republican Party Half-Breed
action filter_type
action find_reverse
entity Republican Party
relation part of
type political organization
[{'concept': 'political organization'}, 'part of', 'Republican Party']
SELECT DISTINCT ?a WHERE { ?a property:part_of resource:Republican_Party . ?a rdf:type ontology:political_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3366683
P1142
Q7257
USER
Which ideology does that political organization believe in ?
(Q3366683,P1142,c(Q7257))
action filter_type
action find
entity Q3366683
relation P1142
type Q7257
['Q3366683', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?t WHERE { resource:Q3366683 property:P1142 ?t . ?t rdf:type ontology:Q7257 }
Illinois Republican Party
action filter_type
action find
entity Illinois Republican Party
relation political ideology
type ideology
['Illinois Republican Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?t WHERE { resource:Illinois_Republican_Party property:political_ideology ?t . ?t rdf:type ontology:ideology }
[]
ideology
Clarification for simple ques.
Q1359302
SYSTEM
Did you mean Half-Breed ?
Q3366683 Q7314631 Q1359302
(Q3366683,P1142,c(Q7257)) (Q7314631,P1142,c(Q7257)) (Q1359302,P1142,c(Q7257))
[ANSWER]
['Q3366683', 'P1142', {'concept': 'Q7257'}] ['Q7314631', 'P1142', {'concept': 'Q7257'}] ['Q1359302', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?t WHERE { resource:Q3366683 property:P1142 ?t . ?t rdf:type ontology:Q7257 }
Illinois Republican Party Republican Party Half-Breed
Did you mean Half-Breed ?
Half-Breed
['Illinois Republican Party', 'political ideology', {'concept': 'ideology'}] ['Republican Party', 'political ideology', {'concept': 'ideology'}] ['Half-Breed', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?t WHERE { resource:Illinois_Republican_Party property:political_ideology ?t . ?t rdf:type ontology:ideology }
[]
Simple Question (Coreferenced)
USER
No, I meant Illinois Republican Party. Could you tell me the answer for that?
(Q3366683,P1142,c(Q7257))
Q3366683
['Q3366683', 'P1142', {'concept': 'Q7257'}]
['Illinois Republican Party', 'political ideology', {'concept': 'ideology'}]
[]
Q2585032
SYSTEM
Conservatism in the United States
Q2585032
(Q3366683,P1142,c(Q7257))
action filter_type
action find
entity Q3366683
relation P1142
type Q7257
That political organization believes in [ANSWER]
['Q3366683', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?t WHERE { resource:Q3366683 property:P1142 ?t . ?t rdf:type ontology:Q7257 }
Conservatism in the United States
That political organization believes in Conservatism in the United States
Conservatism in the United States
action filter_type
action find
entity Illinois Republican Party
relation political ideology
type ideology
['Illinois Republican Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?t WHERE { resource:Illinois_Republican_Party property:political_ideology ?t . ?t rdf:type ontology:ideology }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P366
Q41176 Q223557 Q811430
USER
Which constructions have their main functionality as max number of buildings and physical objects ?
(c(Q811430),P366,c(Q41176)|c(Q223557))
action argmax
action union
action find_tuple_counts
relation P366
type Q811430
type Q41176
action find_tuple_counts
relation P366
type Q811430
type Q223557
[{'concept': 'Q811430'}, 'P366', [{'concept': 'Q41176'}, {'concept': 'Q223557'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?f ) AS ?i ) WHERE { { ?r property:P366 ?f . ?r rdf:type ontology:Q811430 . ?f rdf:type ontology:Q41176 } UNION { ?r property:P366 ?f . ?r rdf:type ontology:Q811430 . ?f rdf:type ontology:Q223557 } } GROUP BY ?r } . FILTER ( ?i = ?z ) . { SELECT DISTINCT ( MAX ( ?j ) AS ?z ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?j ) WHERE { { ?x property:P366 ?t . ?x rdf:type ontology:Q811430 . ?t rdf:type ontology:Q223557 } UNION { ?x property:P366 ?t . ?x rdf:type ontology:Q811430 . ?t rdf:type ontology:Q41176 } } GROUP BY ?x } } }
action argmax
action union
action find_tuple_counts
relation use
type construction
type building
action find_tuple_counts
relation use
type construction
type physical object
[{'concept': 'construction'}, 'use', [{'concept': 'building'}, {'concept': 'physical object'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?f ) AS ?i ) WHERE { { ?r property:use ?f . ?r rdf:type ontology:construction . ?f rdf:type ontology:building } UNION { ?r property:use ?f . ?r rdf:type ontology:construction . ?f rdf:type ontology:physical_object } } GROUP BY ?r } . FILTER ( ?i = ?z ) . { SELECT DISTINCT ( MAX ( ?j ) AS ?z ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?j ) WHERE { { ?x property:use ?t . ?x rdf:type ontology:construction . ?t rdf:type ontology:physical_object } UNION { ?x property:use ?t . ?x rdf:type ontology:construction . ?t rdf:type ontology:building } } GROUP BY ?x } } }
[]
building physical object construction
Q4596016 Q525800 Q1806992
SYSTEM
1 Snow Hill Plaza, pole, Latitude 43
Q1806992 Q1779905 Q1116194 Q24552664 Q359924 Q4596016 Q525800
(c(Q811430),P366,c(Q41176)|c(Q223557))
action argmax
action union
action find_tuple_counts
relation P366
type Q811430
type Q41176
action find_tuple_counts
relation P366
type Q811430
type Q223557
[ANSWERS] have their main functionality as max number of buildings and physical objects
[{'concept': 'Q811430'}, 'P366', [{'concept': 'Q41176'}, {'concept': 'Q223557'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?f ) AS ?i ) WHERE { { ?r property:P366 ?f . ?r rdf:type ontology:Q811430 . ?f rdf:type ontology:Q41176 } UNION { ?r property:P366 ?f . ?r rdf:type ontology:Q811430 . ?f rdf:type ontology:Q223557 } } GROUP BY ?r } . FILTER ( ?i = ?z ) . { SELECT DISTINCT ( MAX ( ?j ) AS ?z ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?j ) WHERE { { ?x property:P366 ?t . ?x rdf:type ontology:Q811430 . ?t rdf:type ontology:Q223557 } UNION { ?x property:P366 ?t . ?x rdf:type ontology:Q811430 . ?t rdf:type ontology:Q41176 } } GROUP BY ?x } } }
Latitude 43 Monte Carlo Casino The Leland Hotel Residência de Estudantes Khovo Lar Golden Gate Hotel and Casino 1 Snow Hill Plaza pole
1 Snow Hill Plaza, pole and Latitude 43 have their main functionality as max number of buildings and physical objects
1 Snow Hill Plaza pole Latitude 43
action argmax
action union
action find_tuple_counts
relation use
type construction
type building
action find_tuple_counts
relation use
type construction
type physical object
[{'concept': 'construction'}, 'use', [{'concept': 'building'}, {'concept': 'physical object'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?f ) AS ?i ) WHERE { { ?r property:use ?f . ?r rdf:type ontology:construction . ?f rdf:type ontology:building } UNION { ?r property:use ?f . ?r rdf:type ontology:construction . ?f rdf:type ontology:physical_object } } GROUP BY ?r } . FILTER ( ?i = ?z ) . { SELECT DISTINCT ( MAX ( ?j ) AS ?z ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?j ) WHERE { { ?x property:use ?t . ?x rdf:type ontology:construction . ?t rdf:type ontology:physical_object } UNION { ?x property:use ?t . ?x rdf:type ontology:construction . ?t rdf:type ontology:building } } GROUP BY ?x } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q55488
P366
Q811430 Q2221906 Q811979
USER
How many constructions represent the main use of approximately the same number of geographic locations and architectural structures as railway station ?
(c(Q2221906)|c(Q811979),P366,c(Q811430))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q811430
type Q2221906
action find_reverse_tuple_counts
relation P366
type Q811430
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q55488
relation P366
type Q2221906
type Q811979
[[{'concept': 'Q2221906'}, {'concept': 'Q811979'}], 'P366', {'concept': 'Q811430'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { FILTER ( ?t = ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { { ?l rdf:type ontology:Q2221906 } UNION { ?l rdf:type ontology:Q811979 } } . ?l property:P366 resource:Q55488 } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?p WHERE { { ?q property:P366 ?p . ?p rdf:type ontology:Q811430 . ?q rdf:type ontology:Q811979 } UNION { ?q property:P366 ?p . ?p rdf:type ontology:Q811430 . ?q rdf:type ontology:Q2221906 } } GROUP BY ?p } }
railway station
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type construction
type geographic location
action find_reverse_tuple_counts
relation use
type construction
type architectural structure
action count
action filter_multi_types
action find_reverse
entity railway station
relation use
type geographic location
type architectural structure
[[{'concept': 'geographic location'}, {'concept': 'architectural structure'}], 'use', {'concept': 'construction'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { FILTER ( ?t = ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { { ?l rdf:type ontology:geographic_location } UNION { ?l rdf:type ontology:architectural_structure } } . ?l property:use resource:railway_station } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?p WHERE { { ?q property:use ?p . ?p rdf:type ontology:construction . ?q rdf:type ontology:architectural_structure } UNION { ?q property:use ?p . ?p rdf:type ontology:construction . ?q rdf:type ontology:geographic_location } } GROUP BY ?p } }
[]
construction geographic location architectural structure
SYSTEM
14
Q4989906 Q11707 Q494829 Q1362225 Q1370598 Q174782 Q148319 Q1195942 Q190157 Q641226 Q18674739 Q55488 Q39715 Q335261
(c(Q2221906)|c(Q811979),P366,c(Q811430))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q811430
type Q2221906
action find_reverse_tuple_counts
relation P366
type Q811430
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q55488
relation P366
type Q2221906
type Q811979
[ANSWER]
[[{'concept': 'Q2221906'}, {'concept': 'Q811979'}], 'P366', {'concept': 'Q811430'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { FILTER ( ?t = ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { { ?l rdf:type ontology:Q2221906 } UNION { ?l rdf:type ontology:Q811979 } } . ?l property:P366 resource:Q55488 } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?p WHERE { { ?q property:P366 ?p . ?p rdf:type ontology:Q811430 . ?q rdf:type ontology:Q811979 } UNION { ?q property:P366 ?p . ?p rdf:type ontology:Q811430 . ?q rdf:type ontology:Q2221906 } } GROUP BY ?p } }
monument restaurant bus station warehouse place of worship square planetarium fire station transmitter arena event venue railway station lighthouse ornament
14
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type construction
type geographic location
action find_reverse_tuple_counts
relation use
type construction
type architectural structure
action count
action filter_multi_types
action find_reverse
entity railway station
relation use
type geographic location
type architectural structure
[[{'concept': 'geographic location'}, {'concept': 'architectural structure'}], 'use', {'concept': 'construction'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { FILTER ( ?t = ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { { ?l rdf:type ontology:geographic_location } UNION { ?l rdf:type ontology:architectural_structure } } . ?l property:use resource:railway_station } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?p WHERE { { ?q property:use ?p . ?p rdf:type ontology:construction . ?q rdf:type ontology:architectural_structure } UNION { ?q property:use ?p . ?p rdf:type ontology:construction . ?q rdf:type ontology:geographic_location } } GROUP BY ?p } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4795289 Q7314631
P20 P159
Q56061
USER
Which administrative territories are the headquarters of Republican Party located or did Arnold Vaide expire ?
OR((Q7314631,P159,c(Q56061)), (Q4795289,P20,c(Q56061)))
action filter_type
action union
action find
entity Q7314631
relation P159
action find
entity Q4795289
relation P20
type Q56061
{'OR': [['Q7314631', 'P159', {'concept': 'Q56061'}], ['Q4795289', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q7314631 property:P159 ?i } UNION { resource:Q4795289 property:P20 ?i } } . ?i rdf:type ontology:Q56061 }
Arnold Vaide Republican Party
action filter_type
action union
action find
entity Republican Party
relation headquarters location
action find
entity Arnold Vaide
relation place of death
type administrative territorial entity
{'OR': [['Republican Party', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Arnold Vaide', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Republican_Party property:headquarters_location ?i } UNION { resource:Arnold_Vaide property:place_of_death ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q26521 Q41211
SYSTEM
Halmstad, San Juan
Q26521 Q41211
OR((Q7314631,P159,c(Q56061)), (Q4795289,P20,c(Q56061)))
action filter_type
action union
action find
entity Q7314631
relation P159
action find
entity Q4795289
relation P20
type Q56061
[ANSWERS] are the headquarters of Republican Party located or did Arnold Vaide expire
{'OR': [['Q7314631', 'P159', {'concept': 'Q56061'}], ['Q4795289', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q7314631 property:P159 ?i } UNION { resource:Q4795289 property:P20 ?i } } . ?i rdf:type ontology:Q56061 }
Halmstad San Juan
Halmstad and San Juan are the headquarters of Republican Party located or did Arnold Vaide expire
Halmstad San Juan
action filter_type
action union
action find
entity Republican Party
relation headquarters location
action find
entity Arnold Vaide
relation place of death
type administrative territorial entity
{'OR': [['Republican Party', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Arnold Vaide', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Republican_Party property:headquarters_location ?i } UNION { resource:Arnold_Vaide property:place_of_death ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q26521
P1376
Q914262
USER
Which administrative territory of Sweden has that administrative territory as its capital ?
(Q26521,P1376,c(Q914262))
action filter_type
action find
entity Q26521
relation P1376
type Q914262
['Q26521', 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ?b WHERE { resource:Q26521 property:P1376 ?b . ?b rdf:type ontology:Q914262 }
Halmstad
action filter_type
action find
entity Halmstad
relation capital of
type administrative territorial entity of Sweden
['Halmstad', 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?b WHERE { resource:Halmstad property:capital_of ?b . ?b rdf:type ontology:administrative_territorial_entity_of_Sweden }
[]
administrative territorial entity of Sweden
Clarification for simple ques.
Q26521
SYSTEM
Did you mean Halmstad ?
Q26521 Q41211
(Q26521,P1376,c(Q914262)) (Q41211,P1376,c(Q914262))
[ANSWER]
['Q26521', 'P1376', {'concept': 'Q914262'}] ['Q41211', 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ?b WHERE { resource:Q26521 property:P1376 ?b . ?b rdf:type ontology:Q914262 }
Halmstad San Juan
Did you mean Halmstad ?
Halmstad
['Halmstad', 'capital of', {'concept': 'administrative territorial entity of Sweden'}] ['San Juan', 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?b WHERE { resource:Halmstad property:capital_of ?b . ?b rdf:type ontology:administrative_territorial_entity_of_Sweden }
[]
Simple Question (Coreferenced)
USER
Yes
(Q26521,P1376,c(Q914262))
['Q26521', 'P1376', {'concept': 'Q914262'}]
['Halmstad', 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
[]
Q504692
SYSTEM
Halmstad Municipality
Q504692
(Q26521,P1376,c(Q914262))
action filter_type
action find
entity Q26521
relation P1376
type Q914262
[ANSWER] has that administrative territory as its capital
['Q26521', 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ?b WHERE { resource:Q26521 property:P1376 ?b . ?b rdf:type ontology:Q914262 }
Halmstad Municipality
Halmstad Municipality has that administrative territory as its capital
Halmstad Municipality
action filter_type
action find
entity Halmstad
relation capital of
type administrative territorial entity of Sweden
['Halmstad', 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?b WHERE { resource:Halmstad property:capital_of ?b . ?b rdf:type ontology:administrative_territorial_entity_of_Sweden }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q504692
P137
Q811979
USER
Which architectural structure was operated by that administrative territory of Sweden ?
(c(Q811979),P137,Q504692)
action filter_type
action find_reverse
entity Q504692
relation P137
type Q811979
[{'concept': 'Q811979'}, 'P137', 'Q504692']
SELECT DISTINCT ?w WHERE { ?w property:P137 resource:Q504692 . ?w rdf:type ontology:Q811979 }
Halmstad Municipality
action filter_type
action find_reverse
entity Halmstad Municipality
relation operator
type architectural structure
[{'concept': 'architectural structure'}, 'operator', 'Halmstad Municipality']
SELECT DISTINCT ?w WHERE { ?w property:operator resource:Halmstad_Municipality . ?w rdf:type ontology:architectural_structure }
[]
architectural structure
Q5643281
SYSTEM
Halmstad Arena
Q5643281
(c(Q811979),P137,Q504692)
action filter_type
action find_reverse
entity Q504692
relation P137
type Q811979
[ANSWER] was operated by that administrative territory of Sweden
[{'concept': 'Q811979'}, 'P137', 'Q504692']
SELECT DISTINCT ?w WHERE { ?w property:P137 resource:Q504692 . ?w rdf:type ontology:Q811979 }
Halmstad Arena
Halmstad Arena was operated by that administrative territory of Sweden
Halmstad Arena
action filter_type
action find_reverse
entity Halmstad Municipality
relation operator
type architectural structure
[{'concept': 'architectural structure'}, 'operator', 'Halmstad Municipality']
SELECT DISTINCT ?w WHERE { ?w property:operator resource:Halmstad_Municipality . ?w rdf:type ontology:architectural_structure }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P137
Q781132 Q811979
USER
How many military branches operates atmost 1 architectural structure ?
(c(Q811979),P137,c(Q781132))
action count
action atmost
action find_reverse_tuple_counts
relation P137
type Q781132
type Q811979
value 1
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:P137 ?o . ?o rdf:type ontology:Q781132 . ?d rdf:type ontology:Q811979 } GROUP BY ?o } . FILTER ( ?i <= 1 ) }
action count
action atmost
action find_reverse_tuple_counts
relation operator
type military branch
type architectural structure
value 1
[{'concept': 'architectural structure'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:operator ?o . ?o rdf:type ontology:military_branch . ?d rdf:type ontology:architectural_structure } GROUP BY ?o } . FILTER ( ?i <= 1 ) }
[]
military branch architectural structure
SYSTEM
130
Q222595 Q2427907 Q169025 Q704397 Q6648444 Q3510333 Q676404 Q246813 Q2705826 Q217406 Q156649 Q702430 Q356359 Q376676 Q1652708 Q2505986 Q1113589 Q3293231 Q1076619 Q741691 Q19562444 Q855186 Q11322507 Q2384177 Q643834 Q1370337 Q465283 Q931281 Q3958034 Q2531890 Q932840 Q3848121 Q796754 Q897614 Q1815399 Q4419309 Q2387294 Q56018 Q2067603 Q2258261 Q56015 Q2055634 Q19344622 Q952444 Q488756 Q16408580 Q2071948 Q1285655 Q1188381 Q2537847 Q1774585 Q25436 Q2630039 Q6479134 Q4114459 Q2370391 Q2292358 Q11218 Q3546162 Q5334371 Q355771 Q159211 Q2074039 Q267167 Q702116 Q2349884 Q583941 Q1322103 Q15705369 Q781360 Q2408298 Q1129369 Q4115107 Q16151032 Q219712 Q1038047 Q833040 Q4114435 Q2575188 Q889751 Q2704661 Q898671 Q2566387 Q1944482 Q1750688 Q4855270 Q7032867 Q208711 Q2083573 Q755179 Q1324290 Q2301347 Q9212 Q861530 Q1046947 Q731647 Q2526431 Q2594652 Q792296 Q3274075 Q17404781 Q1141396 Q2745472 Q11220 Q1062125 Q172771 Q2742227 Q2006452 Q3277832 Q2528358 Q4939559 Q3848018 Q1311627 Q2749588 Q1777326 Q2665572 Q25387 Q1370395 Q1366319 Q3293295 Q2492012 Q151701 Q796411 Q588089 Q2383264 Q510534 Q1124986 Q4303265 Q575932 Q569328
(c(Q811979),P137,c(Q781132))
action count
action atmost
action find_reverse_tuple_counts
relation P137
type Q781132
type Q811979
value 1
[ANSWER]
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:P137 ?o . ?o rdf:type ontology:Q781132 . ?d rdf:type ontology:Q811979 } GROUP BY ?o } . FILTER ( ?i <= 1 ) }
British Army Royal Thai Navy National Navy of Uruguay Republic of China Army Lithuanian Army Nigerian Navy Spanish Navy Luxembourg Army Free French Naval Forces French Navy Imperial German Navy Beiyang Fleet Indian Navy Albanian Naval Force South African Navy National Army of Venezuela Saudi Arabian Army Bangladesh Navy French Army Royal Australian Navy Danish-Norwegian navy Regia Marina German Army Norwegian Army German Navy Estonian Navy Russian Navy Royal Netherlands Navy Argentine Army Aviation Republic of Singapore Navy Ukrainian Navy United Arab Emirates Navy Soviet Navy Iraqi Army South African Army Kazakh Air and Air Defence Forces Romanian Naval Forces Joint Medical Service Royal Indian Navy Pakistan Navy German Navy Royal Bahrain Naval Force naval reserve force Peruvian Navy Republic of Korea Navy Eesti Merevägi Finnish Navy Royal Yugoslav Navy Bulgarian Navy Latvian Naval Forces Swedish Amphibious Corps Canadian Army New Zealand Army Egyptian Army Eritrean Navy Royal Bhutan Army Brazilian Army United States Marine Corps Philippine Navy Ecuadorian Army Indian Army Austro-Hungarian Navy Latvian Land Forces Polish Navy Republic of China Navy Croatian Navy Imperial Russian Navy Spanish Army Tudor navy Australian Army Islamic Republic of Iran Navy Hellenic Navy National Army of Colombia Dano-Norwegian Navy Imperial Japanese Navy Irish Army Italian Navy Royal Naval Force Royal Danish Army Japan Ground Self-Defense Force Indonesian Navy Iraqi Navy Yugoslav Navy Mongolian People's Army Brazilian Navy Bangladesh Army Nigerian Army Chilean Navy Royal Norwegian Navy People's Liberation Army Navy Vietnam People's Navy Argentine Army United States Army Royal Malaysian Navy Royal Marines Japan Maritime Self-Defense Force National Navy of Colombia Naval Service Belgian Naval Component Sri Lanka Navy Afghan Special Mission Wing Swedish Navy Chilean Army United States Navy Ottoman Navy Royal Navy Royal Saudi Navy Royal Danish Navy Hungarian Ground Forces Mexican Navy Bolivian Army Italian Co-Belligerent Navy Syrian Navy Royal Thai Army Argentine Navy Algerian National Navy Royal Canadian Navy Estonian Land Forces Libyan Navy Turkish Navy Swedish Army Kriegsmarine Italian Army Portuguese Navy Finnish Army Israeli Navy Confederate States Navy Argentine Marines Royal New Zealand Navy Air Force and Anti-Air Defence Brigade
130
action count
action atmost
action find_reverse_tuple_counts
relation operator
type military branch
type architectural structure
value 1
[{'concept': 'architectural structure'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:operator ?o . ?o rdf:type ontology:military_branch . ?d rdf:type ontology:architectural_structure } GROUP BY ?o } . FILTER ( ?i <= 1 ) }
[]