Simple Question (Direct)
Simple Question
Q1706154
P20
Q56061
USER
Which administrative territory is the place of death of Joseph Kudler ?
(Q1706154,P20,c(Q56061))
action filter_type
action find
entity Q1706154
relation P20
type Q56061
['Q1706154', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q1706154 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Joseph Kudler
action filter_type
action find
entity Joseph Kudler
relation place of death
type administrative territorial entity
['Joseph Kudler', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Joseph_Kudler property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741
SYSTEM
Vienna
Q1741
(Q1706154,P20,c(Q56061))
action filter_type
action find
entity Q1706154
relation P20
type Q56061
[ANSWER] is the place of death of Joseph Kudler
['Q1706154', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q1706154 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Vienna
Vienna is the place of death of Joseph Kudler
Vienna
action filter_type
action find
entity Joseph Kudler
relation place of death
type administrative territorial entity
['Joseph Kudler', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Joseph_Kudler property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1706154
P19
Q618779
USER
Which award is the place of birth of that person ?
(Q1741,P19,c(Q618779))
action filter_type
action find
entity Q1706154
relation P19
type Q618779
['Q1741', 'P19', {'concept': 'Q618779'}]
SELECT DISTINCT ?n WHERE { resource:Q1706154 property:P19 ?n . ?n rdf:type ontology:Q618779 }
Joseph Kudler
action filter_type
action find
entity Joseph Kudler
relation place of birth
type award
['Vienna', 'place of birth', {'concept': 'award'}]
SELECT DISTINCT ?n WHERE { resource:Joseph_Kudler property:place_of_birth ?n . ?n rdf:type ontology:award }
[]
award
Q13298
SYSTEM
Graz
Q13298
(Q1741,P19,c(Q618779))
action filter_type
action find
entity Q1706154
relation P19
type Q618779
[ANSWER] is the place of birth of that person
['Q1741', 'P19', {'concept': 'Q618779'}]
SELECT DISTINCT ?n WHERE { resource:Q1706154 property:P19 ?n . ?n rdf:type ontology:Q618779 }
Graz
Graz is the place of birth of that person
Graz
action filter_type
action find
entity Joseph Kudler
relation place of birth
type award
['Vienna', 'place of birth', {'concept': 'award'}]
SELECT DISTINCT ?n WHERE { resource:Joseph_Kudler property:place_of_birth ?n . ?n rdf:type ontology:award }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q13298
P47
Q15617994 Q871419
USER
How many administrative territories or districts of Austria do Graz share a border with ?
(c(Q15617994),P47,Q13298) (c(Q871419),P47,Q13298)
action count
action union
action filter_type
action find_reverse
entity Q13298
relation P47
type Q15617994
action filter_type
action find_reverse
entity Q13298
relation P47
type Q871419
[{'concept': 'Q15617994'}, 'P47', 'Q13298'] [{'concept': 'Q871419'}, 'P47', 'Q13298']
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { ?c property:P47 resource:Q13298 . ?c rdf:type ontology:Q15617994 } UNION { ?c property:P47 resource:Q13298 . ?c rdf:type ontology:Q871419 } }
Graz
action count
action union
action filter_type
action find_reverse
entity Graz
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Graz
relation shares border with
type district of Austria
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Graz'] [{'concept': 'district of Austria'}, 'shares border with', 'Graz']
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { ?c property:shares_border_with resource:Graz . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c property:shares_border_with resource:Graz . ?c rdf:type ontology:district_of_Austria } }
[]
designation for an administrative territorial entity district of Austria
SYSTEM
3
Q672475 Q695414 Q696992
(c(Q15617994),P47,Q13298) (c(Q871419),P47,Q13298)
action count
action union
action filter_type
action find_reverse
entity Q13298
relation P47
type Q15617994
action filter_type
action find_reverse
entity Q13298
relation P47
type Q871419
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q13298'] [{'concept': 'Q871419'}, 'P47', 'Q13298']
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { ?c property:P47 resource:Q13298 . ?c rdf:type ontology:Q15617994 } UNION { ?c property:P47 resource:Q13298 . ?c rdf:type ontology:Q871419 } }
Graz-Umgebung District Raaba Gössendorf
3
action count
action union
action filter_type
action find_reverse
entity Graz
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Graz
relation shares border with
type district of Austria
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Graz'] [{'concept': 'district of Austria'}, 'shares border with', 'Graz']
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { ?c property:shares_border_with resource:Graz . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c property:shares_border_with resource:Graz . ?c rdf:type ontology:district_of_Austria } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13298
P551
Q502895
USER
Which people live in Graz ?
(c(Q502895),P551,Q13298)
action filter_type
action find_reverse
entity Q13298
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q13298']
SELECT DISTINCT ?n WHERE { ?n property:P551 resource:Q13298 . ?n rdf:type ontology:Q502895 }
Graz
action filter_type
action find_reverse
entity Graz
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Graz']
SELECT DISTINCT ?n WHERE { ?n property:residence resource:Graz . ?n rdf:type ontology:common_name }
[]
common name
Q9036 Q22114544 Q105575
SYSTEM
Nikola Tesla, Aloisia Veit, Theodor Brugsch
Q113789 Q105575 Q2154545 Q22114544 Q441027 Q22116705 Q22117389 Q9036 Q3134685
(c(Q502895),P551,Q13298)
action filter_type
action find_reverse
entity Q13298
relation P551
type Q502895
[ANSWERS] live in Graz
[{'concept': 'Q502895'}, 'P551', 'Q13298']
SELECT DISTINCT ?n WHERE { ?n property:P551 resource:Q13298 . ?n rdf:type ontology:Q502895 }
Renee Pornero Theodor Brugsch Ripoff Raskolnikov Aloisia Veit Oliver Marach Viktoria Veit Josefa Veit Nikola Tesla Herwig Rüdisser
Nikola Tesla, Aloisia Veit and Theodor Brugsch live in Graz
Nikola Tesla Aloisia Veit Theodor Brugsch
action filter_type
action find_reverse
entity Graz
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Graz']
SELECT DISTINCT ?n WHERE { ?n property:residence resource:Graz . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13298
P931
Q62447
USER
What city is served by Graz ?
(c(Q62447),P931,Q13298)
action filter_type
action find_reverse
entity Q13298
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q13298']
SELECT DISTINCT ?n WHERE { ?n property:P931 resource:Q13298 . ?n rdf:type ontology:Q62447 }
Graz
action filter_type
action find_reverse
entity Graz
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Graz']
SELECT DISTINCT ?n WHERE { ?n property:place_served_by_airport resource:Graz . ?n rdf:type ontology:aerodrome }
[]
aerodrome
Q178162
SYSTEM
Graz Airport
Q178162
(c(Q62447),P931,Q13298)
action filter_type
action find_reverse
entity Q13298
relation P931
type Q62447
[ANSWER] is served by Graz
[{'concept': 'Q62447'}, 'P931', 'Q13298']
SELECT DISTINCT ?n WHERE { ?n property:P931 resource:Q13298 . ?n rdf:type ontology:Q62447 }
Graz Airport
Graz Airport is served by Graz
Graz Airport
action filter_type
action find_reverse
entity Graz
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Graz']
SELECT DISTINCT ?n WHERE { ?n property:place_served_by_airport resource:Graz . ?n rdf:type ontology:aerodrome }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13298
P36
Q15617994
USER
Which administrative territory is Graz the capital of ?
(c(Q15617994),P36,Q13298)
action filter_type
action find_reverse
entity Q13298
relation P36
type Q15617994
[{'concept': 'Q15617994'}, 'P36', 'Q13298']
SELECT DISTINCT ?k WHERE { ?k property:P36 resource:Q13298 . ?k rdf:type ontology:Q15617994 }
Graz
action filter_type
action find_reverse
entity Graz
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Graz']
SELECT DISTINCT ?k WHERE { ?k property:capital resource:Graz . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q580447
SYSTEM
Duchy of Styria
Q580447
(c(Q15617994),P36,Q13298)
action filter_type
action find_reverse
entity Q13298
relation P36
type Q15617994
Which administrative territory is Graz the capital of
[{'concept': 'Q15617994'}, 'P36', 'Q13298']
SELECT DISTINCT ?k WHERE { ?k property:P36 resource:Q13298 . ?k rdf:type ontology:Q15617994 }
Duchy of Styria
Which administrative territory is Graz the capital of
Duchy of Styria
action filter_type
action find_reverse
entity Graz
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Graz']
SELECT DISTINCT ?k WHERE { ?k property:capital resource:Graz . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q580447
P17
Q1048835
USER
Which political territory is that administrative territory located in ?
(Q580447,P17,c(Q1048835))
action filter_type
action find
entity Q580447
relation P17
type Q1048835
['Q580447', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q580447 property:P17 ?o . ?o rdf:type ontology:Q1048835 }
Duchy of Styria
action filter_type
action find
entity Duchy of Styria
relation country
type political territorial entity
['Duchy of Styria', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Duchy_of_Styria property:country ?o . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q580447,P17,c(Q1048835))
action filter_type
action find
entity Q580447
relation P17
type Q1048835
That administrative territory is located in [ANSWER]
['Q580447', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q580447 property:P17 ?o . ?o rdf:type ontology:Q1048835 }
Austria
That administrative territory is located in Austria
Austria
action filter_type
action find
entity Duchy of Styria
relation country
type political territorial entity
['Duchy of Styria', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Duchy_of_Styria property:country ?o . ?o rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q40 Q38 Q142
P530
Q15617994
USER
Does that political territory have diplomatic associations with Italy and France ?
(Q40,P530,Q38) (Q40,P530,Q142)
action is_in
entity Q40
action intersection
action find_reverse
entity Q38
relation P530
action find_reverse
entity Q142
relation P530
['Q40', 'P530', 'Q38'] ['Q40', 'P530', 'Q142']
ASK WHERE { resource:Q40 property:P530 resource:Q38 . resource:Q40 property:P530 resource:Q142 }
Austria Italy France
action is_in
entity Austria
action intersection
action find_reverse
entity Italy
relation diplomatic relation
action find_reverse
entity France
relation diplomatic relation
['Austria', 'diplomatic relation', 'Italy'] ['Austria', 'diplomatic relation', 'France']
ASK WHERE { resource:Austria property:diplomatic_relation resource:Italy . resource:Austria property:diplomatic_relation resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q40,P530,Q38) (Q40,P530,Q142)
action is_in
entity Q40
action intersection
action find_reverse
entity Q38
relation P530
action find_reverse
entity Q142
relation P530
[ANSWER]
['Q40', 'P530', 'Q38'] ['Q40', 'P530', 'Q142']
ASK WHERE { resource:Q40 property:P530 resource:Q38 . resource:Q40 property:P530 resource:Q142 }
Yes
action is_in
entity Austria
action intersection
action find_reverse
entity Italy
relation diplomatic relation
action find_reverse
entity France
relation diplomatic relation
['Austria', 'diplomatic relation', 'Italy'] ['Austria', 'diplomatic relation', 'France']
ASK WHERE { resource:Austria property:diplomatic_relation resource:Italy . resource:Austria property:diplomatic_relation resource:France }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11970025 Q1706154
P27
Q1048835
USER
Which political territories are the countries of citizenship of Joseph Kudler or Frederik Hannibal Stockfleth ?
OR((Q1706154,P27,c(Q1048835)), (Q11970025,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1706154
relation P27
action find
entity Q11970025
relation P27
type Q1048835
{'OR': [['Q1706154', 'P27', {'concept': 'Q1048835'}], ['Q11970025', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q11970025 property:P27 ?x } UNION { resource:Q1706154 property:P27 ?x } } . ?x rdf:type ontology:Q1048835 }
Frederik Hannibal Stockfleth Joseph Kudler
action filter_type
action union
action find
entity Joseph Kudler
relation country of citizenship
action find
entity Frederik Hannibal Stockfleth
relation country of citizenship
type political territorial entity
{'OR': [['Joseph Kudler', 'country of citizenship', {'concept': 'political territorial entity'}], ['Frederik Hannibal Stockfleth', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Frederik_Hannibal_Stockfleth property:country_of_citizenship ?x } UNION { resource:Joseph_Kudler property:country_of_citizenship ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40 Q35
SYSTEM
Austria, Denmark
Q40 Q35
OR((Q1706154,P27,c(Q1048835)), (Q11970025,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1706154
relation P27
action find
entity Q11970025
relation P27
type Q1048835
[ANSWERS] are the countries of citizenship of Joseph Kudler or Frederik Hannibal Stockfleth
{'OR': [['Q1706154', 'P27', {'concept': 'Q1048835'}], ['Q11970025', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q11970025 property:P27 ?x } UNION { resource:Q1706154 property:P27 ?x } } . ?x rdf:type ontology:Q1048835 }
Austria Denmark
Austria and Denmark are the countries of citizenship of Joseph Kudler or Frederik Hannibal Stockfleth
Austria Denmark
action filter_type
action union
action find
entity Joseph Kudler
relation country of citizenship
action find
entity Frederik Hannibal Stockfleth
relation country of citizenship
type political territorial entity
{'OR': [['Joseph Kudler', 'country of citizenship', {'concept': 'political territorial entity'}], ['Frederik Hannibal Stockfleth', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Frederik_Hannibal_Stockfleth property:country_of_citizenship ?x } UNION { resource:Joseph_Kudler property:country_of_citizenship ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Do Georgia have diplomatic associations with those political territories ?
(Q230,P530,Q40) (Q230,P530,Q35)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q40'] ['Q230', 'P530', 'Q35']
ASK WHERE { resource:Q230 property:P530 ?v . VALUES ( ?v ) { ( resource:Q40 ) ( resource:Q35 ) } }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Austria'] ['Georgia', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Georgia property:diplomatic_relation ?v . VALUES ( ?v ) { ( resource:Austria ) ( resource:Denmark ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q40) (Q230,P530,Q35)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q40'] ['Q230', 'P530', 'Q35']
ASK WHERE { resource:Q230 property:P530 ?v . VALUES ( ?v ) { ( resource:Q40 ) ( resource:Q35 ) } }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Austria'] ['Georgia', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Georgia property:diplomatic_relation ?v . VALUES ( ?v ) { ( resource:Austria ) ( resource:Denmark ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q35 Q183
P47
Q1048835
USER
Does Germany share border with Denmark ?
(Q35,P47,Q183)
action is_in
entity Q183
action find
entity Q35
relation P47
['Q35', 'P47', 'Q183']
ASK WHERE { resource:Q35 property:P47 resource:Q183 }
Denmark Germany
action is_in
entity Germany
action find
entity Denmark
relation shares border with
['Denmark', 'shares border with', 'Germany']
ASK WHERE { resource:Denmark property:shares_border_with resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q35,P47,Q183)
action is_in
entity Q183
action find
entity Q35
relation P47
[ANSWER]
['Q35', 'P47', 'Q183']
ASK WHERE { resource:Q35 property:P47 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Denmark
relation shares border with
['Denmark', 'shares border with', 'Germany']
ASK WHERE { resource:Denmark property:shares_border_with resource:Germany }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q5530642
P1411
Q618779 Q838948 Q502895
USER
How many awards were less number of works of art and people nominated for than Gemini Award for Best Performance by an Actress in a Continuing Leading Dramatic Role ?
(c(Q838948)|c(Q502895),P1411,c(Q618779))
action count
action less
action union
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q838948
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q5530642
relation P1411
type Q838948
type Q502895
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { FILTER ( ?b < ?v ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { ?e property:P1411 resource:Q5530642 . { { ?e rdf:type ontology:Q838948 } UNION { ?e rdf:type ontology:Q502895 } } } } . { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?b ) WHERE { { ?p property:P1411 ?a . ?a rdf:type ontology:Q618779 . ?p rdf:type ontology:Q502895 } UNION { ?p property:P1411 ?a . ?a rdf:type ontology:Q618779 . ?p rdf:type ontology:Q838948 } } GROUP BY ?a } }
Gemini Award for Best Performance by an Actress in a Continuing Leading Dramatic Role
action count
action less
action union
action find_reverse_tuple_counts
relation nominated for
type award
type work of art
action find_reverse_tuple_counts
relation nominated for
type award
type common name
action count
action filter_multi_types
action find_reverse
entity Gemini Award for Best Performance by an Actress in a Continuing Leading Dramatic Role
relation nominated for
type work of art
type common name
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { FILTER ( ?b < ?v ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { ?e property:nominated_for resource:Gemini_Award_for_Best_Performance_by_an_Actress_in_a_Continuing_Leading_Dramatic_Role . { { ?e rdf:type ontology:work_of_art } UNION { ?e rdf:type ontology:common_name } } } } . { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?b ) WHERE { { ?p property:nominated_for ?a . ?a rdf:type ontology:award . ?p rdf:type ontology:common_name } UNION { ?p property:nominated_for ?a . ?a rdf:type ontology:award . ?p rdf:type ontology:work_of_art } } GROUP BY ?a } }
[]
award work of art common name
SYSTEM
259
Q3841609 Q3841608 Q3841600 Q3841602 Q17135175 Q3664507 Q7243504 Q7243505 Q7243502 Q7243503 Q7243500 Q7413657 Q7243508 Q543729 Q11886698 Q915228 Q1027880 Q24054725 Q48786 Q20978457 Q5461357 Q5593762 Q850243 Q5593767 Q16994369 Q6496369 Q6496367 Q2101397 Q5243455 Q38461 Q38465 Q21588788 Q5280676 Q5280672 Q15046323 Q5305729 Q1204940 Q7821800 Q5305723 Q16911512 Q1619268 Q7929098 Q18693547 Q847054 Q1161136 Q17008272 Q5593841 Q1542147 Q840286 Q7243501 Q6952072 Q6952074 Q7243495 Q7243496 Q7243497 Q7243498 Q7243499 Q6496382 Q7569452 Q2620100 Q24034699 Q2603180 Q5942214 Q494453 Q4835653 Q5533173 Q7826362 Q5593894 Q5593895 Q369255 Q4921549 Q678413 Q3276722 Q546779 Q5305718 Q5579574 Q848322 Q1328249 Q21588804 Q7243510 Q7243513 Q1285780 Q7243517 Q7826358 Q16162550 Q5593877 Q17048589 Q16987659 Q24034704 Q1870460 Q4896808 Q6496351 Q494414 Q24050343 Q3404587 Q5243445 Q889841 Q1780176 Q21588796 Q9395567 Q38473 Q38470 Q21973897 Q24050333 Q24050339 Q2475536 Q7826367 Q4649803 Q4354969 Q1357770 Q3841598 Q3841592 Q12314193 Q17092538 Q16938408 Q7569444 Q7569445 Q1542151 Q3841620 Q6496325 Q6952067 Q24054053 Q981339 Q24054058 Q493311 Q6496396 Q1414673 Q38435 Q7929113 Q17010286 Q18693967 Q392586 Q1441552 Q2085662 Q5593886 Q5593881 Q3113384 Q3113382 Q1441676 Q16827133 Q4921552 Q4921550 Q4824165 Q16994372 Q5530641 Q7413645 Q327154 Q2018307 Q38138 Q505395 Q1268066 Q16324366 Q4896723 Q4744486 Q5593902 Q1542160 Q494448 Q16146879 Q493325 Q6496340 Q1275727 Q3225582 Q1353326 Q1659576 Q10761808 Q8038463 Q1282644 Q99700 Q1527242 Q6496338 Q6496339 Q6496345 Q2558222 Q7102152 Q7382193 Q17009285 Q2730331 Q6394341 Q1161113 Q245643 Q3841616 Q3841615 Q782517 Q3841613 Q3841611 Q3841595 Q3841594 Q3841596 Q3841619 Q6952051 Q7886343 Q6952059 Q3492779 Q7929109 Q16943561 Q1061238 Q5461347 Q1700510 Q17010296 Q1659587 Q1659585 Q6496377 Q24050363 Q1659581 Q6496373 Q16155407 Q2603356 Q24054038 Q1369077 Q494443 Q38457 Q38451 Q3077281 Q821166 Q1270715 Q775028 Q1542811 Q1326340 Q2781969 Q566905 Q7113054 Q889836 Q3352913 Q4649829 Q821010 Q1071326 Q7929089 Q1505018 Q2549777 Q2024470 Q390951 Q221178 Q5593858 Q5593859 Q4896824 Q5593750 Q5593754 Q5593757 Q4649798 Q6496400 Q6496401 Q1271740 Q6496399 Q4896553 Q5461362 Q24054773 Q24034701 Q3131545 Q586140 Q7826370 Q249095 Q19858055 Q3403236 Q17500606 Q1011547 Q5593813 Q5593815 Q3965593 Q3019365
(c(Q838948)|c(Q502895),P1411,c(Q618779))
action count
action less
action union
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q838948
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q5530642
relation P1411
type Q838948
type Q502895
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { FILTER ( ?b < ?v ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { ?e property:P1411 resource:Q5530642 . { { ?e rdf:type ontology:Q838948 } UNION { ?e rdf:type ontology:Q502895 } } } } . { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?b ) WHERE { { ?p property:P1411 ?a . ?a rdf:type ontology:Q618779 . ?p rdf:type ontology:Q502895 } UNION { ?p property:P1411 ?a . ?a rdf:type ontology:Q618779 . ?p rdf:type ontology:Q838948 } } GROUP BY ?a } }
MTV Europe Music Award for Best Norwegian Act MTV Europe Music Award for Best Nordic Act MTV Europe Music Award for Best French Act MTV Europe Music Award for Best Danish Act Latin Grammy Award for Best Urban Performance Central Ohio Film Critics Association Award for Best Actress Primetime Emmy Award for Outstanding Costumes for a Series Primetime Emmy Award for Outstanding Main Title Design Primetime Emmy Award for Outstanding Cinematography for a Single-Camera Series Primetime Emmy Award for Outstanding Costumes for a Miniseries, Movie or a Special Primetime Emmy Award for Outstanding Cinematography for a One Hour Series San Diego Film Critics Society Award for Best Supporting Actress Primetime Emmy Award for Outstanding Music Composition for a Series MTV Video Music Award for Best Group Video Jussi Award for Best Supporting Actress MTV Video Music Award for Best Rock Video Grammy Award for Best Pop Duo/Group Performance Best of 2010 Award for Best Comic-Book Adaptation Sakharov Prize Gotham Award for Best Documentary Florida Film Critics Circle Award for Best Screenplay Grammy Award for Best Classical Performance – Instrumental Soloist or Soloists Grammy Award for Best Hard Rock/Metal Performance Grammy Award for Best Contemporary (R&R) Solo Vocal Performance – Male or Female Grammy Award for Best Latin Urban Album Latin Grammy Award for Best Pop Album by a Duo or Group with Vocals Latin Grammy Award for Best Norteño Album Political Film Society Award for Human Rights Daytime Emmy Award for Outstanding Talk Show Informative MTV Europe Music Award for Best Alternative MTV Europe Music Award for Best Dance Harvey Award for Best Artist Directors Guild of America Award for Outstanding Directing – Reality Programs Directors Guild of America Award for Outstanding Directing – Daytime Serials Daytime Emmy Award for Outstanding Drama Series Directing Team Drama Desk Award for Unique Theatrical Experience IQ Award Tony Award for Best Stage Technician Drama Desk Award for Outstanding Revival of a Musical American Music Award for Favorite Rap/Hip-Hop Band/Duo/Group Grammy Award for Best Classical Contemporary Composition Vijay Award for Best Debut Actor Jussi Award for Best Supporting Actor MTV Video Music Award for Best Dance Video MTV Video Music Award for Best Stage Performance Latin Grammy Award for Best Ranchero Album Grammy Award for Best New Age Album Grammy Award for Best Dance/Electronic Album Best Actress Award Primetime Emmy Award for Outstanding Cinematography for a Multi-Camera Series NAACP Image Award for Outstanding Television Movie, Mini-Series or Dramatic Special NAACP Image Award for Outstanding Variety – Series or Special Primetime Emmy Award for Outstanding Casting for a Comedy Series Primetime Emmy Award for Outstanding Casting for a Miniseries, Movie, or a Special Primetime Emmy Award for Outstanding Casting for a Drama Series Primetime Emmy Award for Outstanding Choreography Primetime Emmy Award for Outstanding Cinematography for a Half-Hour Series Latin Grammy Award for Best Rock Vocal Album, Duo or Group Southeastern Film Critics Association Award for Best Original Screenplay Academy of Canadian Cinema and Television Award for Best Motion Picture Scream Award for Best Superhero MTV Europe Music Award for Best Ukrainian Act Hundred Flowers Award for Best Animation Online Film Critics Society Award for Best Editing BIFA Award for Best British Short Film Genie Award for Best Achievement in Music – Original Song Toronto Film Critics Association Award for Best Director Grammy Award for Best Traditional Folk Album Grammy Award for Best Traditional Gospel Album César Award for Best Animated Short Film Black Reel Award for Best Breakthrough Performance Deutscher Fernsehpreis Broadcast Film Critics Association Award for Best Makeup Frauenkrimipreis der Stadt Wiesbaden Drama Desk Award for Outstanding Music in a Play Golden Horse Award for Best Feature Film MTV Video Music Award for Best Video Game Soundtrack National Board of Review Award for Best Foreign Language Film Harvey Award for Best Writer/Artist Primetime Emmy Award for Outstanding Single-Camera Picture Editing for a Comedy Series Primetime Emmy Award for Outstanding Special Visual Effects Saturn Award for Best Syndicated/Cable Television Series Primetime Emmy Award for Outstanding Variety, Music or Comedy Series Toronto Film Critics Association Award for Best Actress MTV Europe Music Award for Best Australian Act Grammy Award for Best Small Ensemble Performance Primetime Emmy Award for Outstanding Narrator Primetime Emmy Award for Short-format Animation Scream Award for Best Supporting Actor Los Angeles Film Critics Association Award for Best Music Best Soccer Player ESPY Award Latin Grammy Award for Best Folk Album Online Film Critics Society Award for Best Original Score Scream Award for Best Science Fiction Movie Fipresci Prize Daytime Emmy Award for Outstanding Drama Series Writing Team Bodil Award for Best Actor in a Supporting Role Tony Award for Best Musical Harvey Award for Best Writer Śląski Wawrzyn Literacki MTV Europe Music Award for Best Pop MTV Europe Music Award for Best Live Act Grammy Award for Best Recording for Children Scream Award for Best Ensemble Scream Award for Best Cameo Robert Award for Best Costume Design Toronto Film Critics Association Award for Best Supporting Actor AACTA Award for Best Direction in Television Primetime Emmy Award for Outstanding Host for a Reality or Reality-Competition Program Saturn Award for Best Guest Starring Role on Television MTV Europe Music Award for Best Asian Act MTV Europe Music Award for Best Album Grammy Award for Best Comedy Album Primetime Emmy Award for Outstanding Stunt Coordination MTV Europe Music Award for Best US Act Southeastern Film Critics Association Award for Best Actor Southeastern Film Critics Association Award for Best Actress Grammy Award for Best Jazz Fusion Performance MTV Europe Music Award for Best Group Latin Grammy Award for Best Alternative Song NAACP Image Award for Outstanding Supporting Actor in a Comedy Series Golden Schmoes for Best Sci-Fi Movie of the Year MTV Video Music Award for Best Overall Performance Golden Schmoes for Best T&A of the Year Online Film Critics Society Award for Best Director Latin Grammy Award for Best Traditional Tropical Album Filmfestival Max Ophuels Prize MTV Europe Music Award for Best Video Vijay Award for Best Supporting Actress Primetime Emmy Award for Outstanding Art Direction for a Multi-Camera Series Iskelmä-Finlandia James Tait Black Memorial Prize American Music Award for Favorite Country Band/Duo/Group MTV Europe Music Award for Best Latin American Act Grammy Award for Best Soul Gospel Performance by a Duo or Group, Choir or Chorus Grammy Award for Best Soul Gospel Performance, Female Grammy Award for Best Jazz Vocal Album Grammy Award for Best Spoken Word Album for Children American Music Award for Favorite Pop/Rock Band/Duo/Group Best Male College Basketball Player ESPY Award Black Reel Award for Best Film Black Reel Award for Best Director Australian Film Institute International Award for Best Actor Grammy Award for Best Soul Gospel Performance Gemini Award for Best Dramatic Series San Diego Film Critics Society Award for Best Adapted Screenplay Hans Christian Andersen Award Tony Award for Best Revival of a Musical MTV Europe Music Award for Best Rock Los Angeles Film Critics Association Award for Best Foreign Language Film Saturn Award for Best Supporting Actor on Television Robert Award for Best Production Design Best Male Action Sports Athlete ESPY Award American Music Award for Favorite Contemporary Inspirational Artist Grammy Award for Best Vocal Arrangement for Two or More Voices Grammy Award for Best Hard Rock Performance Online Film Critics Society Award for Best Documentary Film International Emmy Award for best drama series Online Film Critics Society Award for Best Picture Latin Grammy Award for Best Contemporary Pop Vocal Album Saturn Award for Best Actor on Television Broadcast Film Critics Association Award for Best Action Film Friedrich Glauser Award NAACP Image Award for Outstanding Comedy Series Toronto Film Critics Association Award for Best Actor Writers Guild of America Award for Television: Animation Saturn Award for Best Special Edition DVD Release Order of Canada American Music Award for Favorite Alternative Artist Latin Grammy Award for Best Classical Album Latin Grammy Award for Best Classical Contemporary Composition Latin Grammy Award for Best Engineered Album Screen Actors Guild Award for Outstanding Performance by a Stunt Ensemble in a Television Series Orgullosamente Latino Award Latin Grammy Award for Best Contemporary Tropical Album NAACP Image Award for Outstanding Actor in a Comedy Series NAACP Image Award for Outstanding Actor in a Daytime Drama Series Kerrang! Award for Best Single MTV Video Music Award for Best Concept Video The Best of the Booker MTV Europe Music Award for Best German Act MTV Europe Music Award for Best Swedish Act MTV Europe Music Award for Best Baltic Act MTV Europe Music Award for Best Portuguese Act MTV Europe Music Award for Best Polish Act MTV Europe Music Award for Best R&B MTV Europe Music Award for Best Dutch & Belgian Act MTV Europe Music Award for Best UK & Ireland Act MTV Europe Music Award for Best Hungarian Act NAACP Image Award for Entertainer of the Year Mussolini Cup NAACP Image Award for Outstanding Jazz Artist Grammy Award for Best Contemporary Blues Album Vijay Award for Best Story, Screenplay Writer American Music Award for Single of the Year Nastro d'Argento for Best Director Florida Film Critics Circle Award for Best Actress Golden Leopard Primetime Emmy Award for Outstanding Character Voice-Over Performance NAACP Image Award for Outstanding Actress in a Drama Series NAACP Image Award for Outstanding Actress in a Comedy Series Latin Grammy Award for Best Rock Album Scream Award for Fight Scene of the Year NAACP Image Award for Outstanding Drama Series Latin Grammy Award for Best Recording Package MTV Europe Music Award for Best Canadian Act Zee Cine Award for Best Playback Singer – Male Golden Schmoes for Best Special Effects of the Year British Academy Television Awards Online Film Critics Society Award for Best Breakthrough Performance MTV Europe Music Award for Best World Stage Performance MTV Europe Music Award for Biggest Fans Rembrandt Award MTV Video Music Award for Best Artist Website Saturn Award for Best Classic Film DVD Release Carrosse d'or Grand prix littéraire d'Afrique noire Grammy Award for Best Comedy Album Premios Iris Annie Award Outstanding Team ESPY Award Bodil Award for Best Actress in a Supporting Role Bodil Award for Best Non-American Film AACTA Award for Best Television Drama Series MTV Video Music Award for Best Alternative Video Un Certain Regard Vijay Award for Best Actress National Book Critics Circle Award Golden Reel Award Online Film Critics Society Award for Best Costume Design Agatha-Christie-Krimipreis Bram Stoker Award for Novel Grammy Award for Best Pop Instrumental Performance with Vocal Coloring Grammy Award for Best Pop/Contemporary Gospel Album Best U.S. Male Olympian ESPY Award Grammy Award for Best Blues Album Grammy Award for Best Boxed or Special Limited Edition Package Grammy Award for Best Chamber Music Performance AACTA Award for Best Children’s Television Series Latin Grammy Award for Best Urban Song Latin Grammy Award for Producer of the Year Saturn Award for Best Retro Television Series on DVD Latin Grammy Award for Best Urban Music Album Best Action Sports Athlete ESPY Award Florida Film Critics Circle Award for Best Supporting Actress Italian Online Movie Award for Best Special Effects Scream Award for Best Science Fiction Actor Primetime Emmy Award for Outstanding Voice-Over Performance Best Actor Award Toronto Film Critics Association Award for Best Supporting Actress Online Film Critics Society Award for Best Adapted Screenplay Artist of the Year Primetime Emmy Award for Outstanding Animated Program Golden Horse Award for Best Art Direction Golden Globe Award Grammy Award for Best Historical Album Grammy Award for Best Inspirational Performance Southeastern Film Critics Association Award for Best Supporting Actor Daytime Emmy Award for Outstanding Drama Series
259
action count
action less
action union
action find_reverse_tuple_counts
relation nominated for
type award
type work of art
action find_reverse_tuple_counts
relation nominated for
type award
type common name
action count
action filter_multi_types
action find_reverse
entity Gemini Award for Best Performance by an Actress in a Continuing Leading Dramatic Role
relation nominated for
type work of art
type common name
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { FILTER ( ?b < ?v ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { ?e property:nominated_for resource:Gemini_Award_for_Best_Performance_by_an_Actress_in_a_Continuing_Leading_Dramatic_Role . { { ?e rdf:type ontology:work_of_art } UNION { ?e rdf:type ontology:common_name } } } } . { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?b ) WHERE { { ?p property:nominated_for ?a . ?a rdf:type ontology:award . ?p rdf:type ontology:common_name } UNION { ?p property:nominated_for ?a . ?a rdf:type ontology:award . ?p rdf:type ontology:work_of_art } } GROUP BY ?a } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q214681 Q1741
P1376
Q7275
USER
Which states have Vienna or Panjim have their first city ?
OR((Q1741,P1376,c(Q7275)), (Q214681,P1376,c(Q7275)))
action filter_type
action union
action find
entity Q1741
relation P1376
action find
entity Q214681
relation P1376
type Q7275
{'OR': [['Q1741', 'P1376', {'concept': 'Q7275'}], ['Q214681', 'P1376', {'concept': 'Q7275'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1741 property:P1376 ?s } UNION { resource:Q214681 property:P1376 ?s } } . ?s rdf:type ontology:Q7275 }
Panjim Vienna
action filter_type
action union
action find
entity Vienna
relation capital of
action find
entity Panjim
relation capital of
type state
{'OR': [['Vienna', 'capital of', {'concept': 'state'}], ['Panjim', 'capital of', {'concept': 'state'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Vienna property:capital_of ?s } UNION { resource:Panjim property:capital_of ?s } } . ?s rdf:type ontology:state }
[]
state
Q12548 Q323904 Q131964
SYSTEM
Holy Roman Empire, Portuguese India, Austrian Empire
Q12548 Q323904 Q131964
OR((Q1741,P1376,c(Q7275)), (Q214681,P1376,c(Q7275)))
action filter_type
action union
action find
entity Q1741
relation P1376
action find
entity Q214681
relation P1376
type Q7275
[ANSWERS] have Vienna or Panjim have their first city
{'OR': [['Q1741', 'P1376', {'concept': 'Q7275'}], ['Q214681', 'P1376', {'concept': 'Q7275'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1741 property:P1376 ?s } UNION { resource:Q214681 property:P1376 ?s } } . ?s rdf:type ontology:Q7275 }
Holy Roman Empire Portuguese India Austrian Empire
Holy Roman Empire, Portuguese India and Austrian Empire have Vienna or Panjim have their first city
Holy Roman Empire Portuguese India Austrian Empire
action filter_type
action union
action find
entity Vienna
relation capital of
action find
entity Panjim
relation capital of
type state
{'OR': [['Vienna', 'capital of', {'concept': 'state'}], ['Panjim', 'capital of', {'concept': 'state'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Vienna property:capital_of ?s } UNION { resource:Panjim property:capital_of ?s } } . ?s rdf:type ontology:state }
[]