Simple Question (Direct)
Simple Question
Q1363081
P937
Q56061
USER
What is the work location of Erwin Jordan ?
(Q1363081,P937,c(Q56061))
action filter_type
action find
entity Q1363081
relation P937
type Q56061
['Q1363081', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q1363081 property:P937 ?r }
Erwin Jordan
action filter_type
action find
entity Erwin Jordan
relation work location
type administrative territorial entity
['Erwin Jordan', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Erwin_Jordan property:work_location ?r }
[]
administrative territorial entity
Q1715
SYSTEM
Hanover
Q1715
(Q1363081,P937,c(Q56061))
action filter_type
action find
entity Q1363081
relation P937
type Q56061
The work location of Erwin Jordan is in [ANSWER]
['Q1363081', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q1363081 property:P937 ?r }
Hanover
The work location of Erwin Jordan is in Hanover
Hanover
action filter_type
action find
entity Erwin Jordan
relation work location
type administrative territorial entity
['Erwin Jordan', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Erwin_Jordan property:work_location ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1363081
P21
Q290
USER
What is the sex of Erwin Jordan ?
(Q1363081,P21,c(Q290))
action filter_type
action find
entity Q1363081
relation P21
type Q290
['Q1363081', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q1363081 property:P21 ?u }
Erwin Jordan
action filter_type
action find
entity Erwin Jordan
relation gender
type sex
['Erwin Jordan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Erwin_Jordan property:gender ?u }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1363081,P21,c(Q290))
action filter_type
action find
entity Q1363081
relation P21
type Q290
The sex of Erwin Jordan is a [ANSWER]
['Q1363081', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q1363081 property:P21 ?u }
male
The sex of Erwin Jordan is a male
male
action filter_type
action find
entity Erwin Jordan
relation gender
type sex
['Erwin Jordan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Erwin_Jordan property:gender ?u }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1715
P1376
Q7275 Q15617994
USER
How many states and administrative territories have Hanover have their first city ?
(Q1715,P1376,c(Q7275)) (Q1715,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1715
relation P1376
type Q7275
action filter_type
action find
entity Q1715
relation P1376
type Q15617994
['Q1715', 'P1376', {'concept': 'Q7275'}] ['Q1715', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { resource:Q1715 property:P1376 ?p . ?p rdf:type ontology:Q7275 } UNION { resource:Q1715 property:P1376 ?p . ?p rdf:type ontology:Q15617994 } }
Hanover
action count
action union
action filter_type
action find
entity Hanover
relation capital of
type state
action filter_type
action find
entity Hanover
relation capital of
type designation for an administrative territorial entity
['Hanover', 'capital of', {'concept': 'state'}] ['Hanover', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { resource:Hanover property:capital_of ?p . ?p rdf:type ontology:state } UNION { resource:Hanover property:capital_of ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
state designation for an administrative territorial entity
SYSTEM
1 states and 1 administrative territories
Q565812 Q164079
(Q1715,P1376,c(Q7275)) (Q1715,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1715
relation P1376
type Q7275
action filter_type
action find
entity Q1715
relation P1376
type Q15617994
[ANSWER]
['Q1715', 'P1376', {'concept': 'Q7275'}] ['Q1715', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { resource:Q1715 property:P1376 ?p . ?p rdf:type ontology:Q7275 } UNION { resource:Q1715 property:P1376 ?p . ?p rdf:type ontology:Q15617994 } }
Principality of Calenberg Kingdom of Hanover
1 states and 1 administrative territories
action count
action union
action filter_type
action find
entity Hanover
relation capital of
type state
action filter_type
action find
entity Hanover
relation capital of
type designation for an administrative territorial entity
['Hanover', 'capital of', {'concept': 'state'}] ['Hanover', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { resource:Hanover property:capital_of ?p . ?p rdf:type ontology:state } UNION { resource:Hanover property:capital_of ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q77027 Q1363081
P27
Q1048835
USER
Which political territories are Erwin Jordan and Anke Engelke an inhabitant of ?
AND((Q1363081,P27,c(Q1048835)), (Q77027,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1363081
relation P27
action find
entity Q77027
relation P27
type Q1048835
{'AND': [['Q1363081', 'P27', {'concept': 'Q1048835'}], ['Q77027', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { resource:Q1363081 property:P27 ?a . resource:Q77027 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Anke Engelke Erwin Jordan
action filter_type
action intersection
action find
entity Erwin Jordan
relation country of citizenship
action find
entity Anke Engelke
relation country of citizenship
type political territorial entity
{'AND': [['Erwin Jordan', 'country of citizenship', {'concept': 'political territorial entity'}], ['Anke Engelke', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { resource:Erwin_Jordan property:country_of_citizenship ?a . resource:Anke_Engelke property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q1363081,P27,c(Q1048835)), (Q77027,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1363081
relation P27
action find
entity Q77027
relation P27
type Q1048835
[ANSWER] is Erwin Jordan and Anke Engelke an inhabitant of
{'AND': [['Q1363081', 'P27', {'concept': 'Q1048835'}], ['Q77027', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { resource:Q1363081 property:P27 ?a . resource:Q77027 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Germany
Germany is Erwin Jordan and Anke Engelke an inhabitant of
Germany
action filter_type
action intersection
action find
entity Erwin Jordan
relation country of citizenship
action find
entity Anke Engelke
relation country of citizenship
type political territorial entity
{'AND': [['Erwin Jordan', 'country of citizenship', {'concept': 'political territorial entity'}], ['Anke Engelke', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { resource:Erwin_Jordan property:country_of_citizenship ?a . resource:Anke_Engelke property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q77027
P371
Q476300
USER
Which competition has Anke Engelke as the presenter ?
(c(Q476300),P371,Q183)
action filter_type
action find_reverse
entity Q77027
relation P371
type Q476300
[{'concept': 'Q476300'}, 'P371', 'Q183']
SELECT DISTINCT ?f WHERE { ?f property:P371 resource:Q77027 . ?f rdf:type ontology:Q476300 }
Anke Engelke
action filter_type
action find_reverse
entity Anke Engelke
relation presenter
type competition
[{'concept': 'competition'}, 'presenter', 'Germany']
SELECT DISTINCT ?f WHERE { ?f property:presenter resource:Anke_Engelke . ?f rdf:type ontology:competition }
[]
competition
Q2496839
SYSTEM
Unser Song für Malmö
Q2496839
(c(Q476300),P371,Q183)
action filter_type
action find_reverse
entity Q77027
relation P371
type Q476300
[ANSWER] has Anke Engelke as the presenter
[{'concept': 'Q476300'}, 'P371', 'Q183']
SELECT DISTINCT ?f WHERE { ?f property:P371 resource:Q77027 . ?f rdf:type ontology:Q476300 }
Unser Song für Malmö
Unser Song für Malmö has Anke Engelke as the presenter
Unser Song für Malmö
action filter_type
action find_reverse
entity Anke Engelke
relation presenter
type competition
[{'concept': 'competition'}, 'presenter', 'Germany']
SELECT DISTINCT ?f WHERE { ?f property:presenter resource:Anke_Engelke . ?f rdf:type ontology:competition }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2496839
P1346
Q2088357
USER
Which musical ensemble was the champion of that competition ?
(Q2496839,P1346,c(Q2088357))
action filter_type
action find
entity Q2496839
relation P1346
type Q2088357
['Q2496839', 'P1346', {'concept': 'Q2088357'}]
SELECT DISTINCT ?d WHERE { resource:Q2496839 property:P1346 ?d . ?d rdf:type ontology:Q2088357 }
Unser Song für Malmö
action filter_type
action find
entity Unser Song für Malmö
relation winner
type musical ensemble
['Unser Song für Malmö', 'winner', {'concept': 'musical ensemble'}]
SELECT DISTINCT ?d WHERE { resource:Unser_Song_für_Malmö property:winner ?d . ?d rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q858880
SYSTEM
Cascada
Q858880
(Q2496839,P1346,c(Q2088357))
action filter_type
action find
entity Q2496839
relation P1346
type Q2088357
[ANSWER] was the champion of that competition
['Q2496839', 'P1346', {'concept': 'Q2088357'}]
SELECT DISTINCT ?d WHERE { resource:Q2496839 property:P1346 ?d . ?d rdf:type ontology:Q2088357 }
Cascada
Cascada was the champion of that competition
Cascada
action filter_type
action find
entity Unser Song für Malmö
relation winner
type musical ensemble
['Unser Song für Malmö', 'winner', {'concept': 'musical ensemble'}]
SELECT DISTINCT ?d WHERE { resource:Unser_Song_für_Malmö property:winner ?d . ?d rdf:type ontology:musical_ensemble }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P737
Q2088357 Q215380 Q2088357
USER
How many musical ensembles influenced exactly 1 bands and musical ensembles ?
(c(Q215380)|c(Q2088357),P737,c(Q2088357))
action count
action equal
action union
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q215380
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q2088357
value 1
[[{'concept': 'Q215380'}, {'concept': 'Q2088357'}], 'P737', {'concept': 'Q2088357'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?r WHERE { VALUES ( ?q ) { ( ontology:Q215380 ) ( ontology:Q2088357 ) } . ?c rdf:type ?q } GROUP BY ?r } . FILTER ( ?j = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type band
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type musical ensemble
value 1
[[{'concept': 'band'}, {'concept': 'musical ensemble'}], 'influenced by', {'concept': 'musical ensemble'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?r WHERE { VALUES ( ?q ) { ( ontology:band ) ( ontology:musical_ensemble ) } . ?c rdf:type ?q } GROUP BY ?r } . FILTER ( ?j = 1 ) }
[]
musical ensemble band musical ensemble
SYSTEM
34
Q110579 Q1474555 Q43267 Q3100494 Q190155 Q1052139 Q300602 Q208767 Q2979510 Q408139 Q485116 Q2328030 Q192861 Q281894 Q81509 Q170132 Q44892 Q751814 Q3522161 Q1719158 Q300348 Q188713 Q1517060 Q218837 Q277865 Q184386 Q484427 Q18233 Q188464 Q687651 Q588820 Q28974 Q2654896 Q552377
(c(Q215380)|c(Q2088357),P737,c(Q2088357))
action count
action equal
action union
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q215380
action find_reverse_tuple_counts
relation P737
type Q2088357
type Q2088357
value 1
[ANSWER]
[[{'concept': 'Q215380'}, {'concept': 'Q2088357'}], 'P737', {'concept': 'Q2088357'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?r WHERE { VALUES ( ?q ) { ( ontology:Q215380 ) ( ontology:Q2088357 ) } . ?c rdf:type ?q } GROUP BY ?r } . FILTER ( ?j = 1 ) }
Energy 52 Henry Cow The Jackson 5 General Elektriks Van Halen The Roots A Tribe Called Quest The Stooges Clockhammer Airbourne Mayhem 1200 Micrograms Venom Converge Minor Threat Can Kraftwerk The Sisters of Mercy The Pale Fountains Woe, Is Me A Certain Ratio The Kinks Alcest The Supremes Fugazi Yes The Cure ABBA Pixies The Gathering Cocteau Twins Earth, Wind & Fire Be-Bop Deluxe Diamond Head
34
action count
action equal
action union
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type band
action find_reverse_tuple_counts
relation influenced by
type musical ensemble
type musical ensemble
value 1
[[{'concept': 'band'}, {'concept': 'musical ensemble'}], 'influenced by', {'concept': 'musical ensemble'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?r WHERE { VALUES ( ?q ) { ( ontology:band ) ( ontology:musical_ensemble ) } . ?c rdf:type ?q } GROUP BY ?r } . FILTER ( ?j = 1 ) }
[]