Simple Question (Direct)
Simple Question
Q6162594
P106
Q12737077
USER
What is the profession of Jason Goss ?
(Q6162594,P106,c(Q12737077))
action filter_type
action find
entity Q6162594
relation P106
type Q12737077
['Q6162594', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q6162594 property:P106 ?z }
Jason Goss
action filter_type
action find
entity Jason Goss
relation occupation
type occupation
['Jason Goss', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Jason_Goss property:occupation ?z }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
(Q6162594,P106,c(Q12737077))
action filter_type
action find
entity Q6162594
relation P106
type Q12737077
The profession of Jason Goss is an [ANSWER]
['Q6162594', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q6162594 property:P106 ?z }
American football player
The profession of Jason Goss is an American football player
American football player
action filter_type
action find
entity Jason Goss
relation occupation
type occupation
['Jason Goss', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Jason_Goss property:occupation ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6162594
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Jason Goss ?
(Q6162594,P27,c(Q15617994))
action filter_type
action find
entity Q6162594
relation P27
type Q15617994
['Q6162594', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q6162594 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Jason Goss
action filter_type
action find
entity Jason Goss
relation country of citizenship
type designation for an administrative territorial entity
['Jason Goss', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jason_Goss property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6162594,P27,c(Q15617994))
action filter_type
action find
entity Q6162594
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Jason Goss
['Q6162594', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q6162594 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
United States of America
United States of America is the country of citizenship of Jason Goss
United States of America
action filter_type
action find
entity Jason Goss
relation country of citizenship
type designation for an administrative territorial entity
['Jason Goss', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jason_Goss property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q1124 Q21035901
P6
Q502895
USER
Does that administrative territory have a government lead by Bill Clinton and Paul Bartels ?
(Q30,P6,Q1124) (Q30,P6,Q21035901)
action is_in
entity Q30
action intersection
action find_reverse
entity Q1124
relation P6
action find_reverse
entity Q21035901
relation P6
['Q30', 'P6', 'Q1124'] ['Q30', 'P6', 'Q21035901']
ASK WHERE { resource:Q30 property:P6 resource:Q21035901 . resource:Q30 property:P6 resource:Q1124 }
United States of America Bill Clinton Paul Bartels
action is_in
entity United States of America
action intersection
action find_reverse
entity Bill Clinton
relation head of government
action find_reverse
entity Paul Bartels
relation head of government
['United States of America', 'head of government', 'Bill Clinton'] ['United States of America', 'head of government', 'Paul Bartels']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Paul_Bartels . resource:United_States_of_America property:head_of_government resource:Bill_Clinton }
[]
common name
SYSTEM
YES and NO respectively
(Q30,P6,Q1124) (Q30,P6,Q21035901)
action is_in
entity Q30
action intersection
action find_reverse
entity Q1124
relation P6
action find_reverse
entity Q21035901
relation P6
[ANSWER]
['Q30', 'P6', 'Q1124'] ['Q30', 'P6', 'Q21035901']
ASK WHERE { resource:Q30 property:P6 resource:Q21035901 . resource:Q30 property:P6 resource:Q1124 }
YES and NO respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity Bill Clinton
relation head of government
action find_reverse
entity Paul Bartels
relation head of government
['United States of America', 'head of government', 'Bill Clinton'] ['United States of America', 'head of government', 'Paul Bartels']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Paul_Bartels . resource:United_States_of_America property:head_of_government resource:Bill_Clinton }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5321220 Q1124
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Bill Clinton or are Długołęka Wielka a part of ?
OR((Q1124,P27,c(Q15617994)), (Q5321220,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1124
relation P27
action find
entity Q5321220
relation P17
type Q15617994
{'OR': [['Q1124', 'P27', {'concept': 'Q15617994'}], ['Q5321220', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1124 property:P27 ?o } UNION { resource:Q5321220 property:P17 ?o } } . ?o rdf:type ontology:Q15617994 }
Długołęka Wielka Bill Clinton
action filter_type
action union
action find
entity Bill Clinton
relation country of citizenship
action find
entity Długołęka Wielka
relation country
type designation for an administrative territorial entity
{'OR': [['Bill Clinton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Długołęka Wielka', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Bill_Clinton property:country_of_citizenship ?o } UNION { resource:Długołęka_Wielka property:country ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q36
SYSTEM
United States of America, Poland
Q30 Q36
OR((Q1124,P27,c(Q15617994)), (Q5321220,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1124
relation P27
action find
entity Q5321220
relation P17
type Q15617994
[ANSWERS] are the native countriesof Bill Clinton or are Długołęka Wielka a part of
{'OR': [['Q1124', 'P27', {'concept': 'Q15617994'}], ['Q5321220', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1124 property:P27 ?o } UNION { resource:Q5321220 property:P17 ?o } } . ?o rdf:type ontology:Q15617994 }
United States of America Poland
United States of America and Poland are the native countriesof Bill Clinton or are Długołęka Wielka a part of
United States of America Poland
action filter_type
action union
action find
entity Bill Clinton
relation country of citizenship
action find
entity Długołęka Wielka
relation country
type designation for an administrative territorial entity
{'OR': [['Bill Clinton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Długołęka Wielka', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Bill_Clinton property:country_of_citizenship ?o } UNION { resource:Długołęka_Wielka property:country ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4724982
P27
Q502895
USER
Are Ali M. Mir a citizen of those administrative territories ?
(Q4724982,P27,Q30) (Q4724982,P27,Q36)
action is_in
entity prev_answer
action find
entity Q4724982
relation P27
['Q4724982', 'P27', 'Q30'] ['Q4724982', 'P27', 'Q36']
ASK WHERE { resource:Q4724982 property:P27 ?l . VALUES ( ?l ) { ( resource:Q30 ) ( resource:Q36 ) } }
Ali M. Mir
action is_in
entity prev_answer
action find
entity Ali M. Mir
relation country of citizenship
['Ali M. Mir', 'country of citizenship', 'United States of America'] ['Ali M. Mir', 'country of citizenship', 'Poland']
ASK WHERE { resource:Ali_M._Mir property:country_of_citizenship ?l . VALUES ( ?l ) { ( resource:United_States_of_America ) ( resource:Poland ) } }
[]
common name
SYSTEM
NO
(Q4724982,P27,Q30) (Q4724982,P27,Q36)
action is_in
entity prev_answer
action find
entity Q4724982
relation P27
[ANSWER]
['Q4724982', 'P27', 'Q30'] ['Q4724982', 'P27', 'Q36']
ASK WHERE { resource:Q4724982 property:P27 ?l . VALUES ( ?l ) { ( resource:Q30 ) ( resource:Q36 ) } }
No
action is_in
entity prev_answer
action find
entity Ali M. Mir
relation country of citizenship
['Ali M. Mir', 'country of citizenship', 'United States of America'] ['Ali M. Mir', 'country of citizenship', 'Poland']
ASK WHERE { resource:Ali_M._Mir property:country_of_citizenship ?l . VALUES ( ?l ) { ( resource:United_States_of_America ) ( resource:Poland ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1210
P840
Q15617994 Q166142 Q15416
USER
How many administrative territories are the narrative locations of greater number of applications or television programs than Lombardy ?
(c(Q166142)|c(Q15416),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q1210
relation P840
type Q166142
type Q15416
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?c ) WHERE { VALUES ( ?k ) { ( ontology:Q166142 ) ( ontology:Q15416 ) } . ?f rdf:type ?k } GROUP BY ?i } . FILTER ( ?c > ?r ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g property:P840 resource:Q1210 . { { ?g rdf:type ontology:Q166142 } UNION { ?g rdf:type ontology:Q15416 } } } } }
Lombardy
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Lombardy
relation narrative location
type application
type television program
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?c ) WHERE { VALUES ( ?k ) { ( ontology:application ) ( ontology:television_program ) } . ?f rdf:type ?k } GROUP BY ?i } . FILTER ( ?c > ?r ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g property:narrative_location resource:Lombardy . { { ?g rdf:type ontology:application } UNION { ?g rdf:type ontology:television_program } } } } }
[]
designation for an administrative territorial entity application television program
SYSTEM
68
Q805 Q801 Q668 Q414 Q3278 Q142 Q55 Q1948 Q145 Q148 Q717 Q837 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q241 Q33 Q32 Q31 Q30 Q36 Q928 Q39 Q38 Q58477 Q739 Q423 Q424 Q851 Q232 Q233 Q20 Q1045 Q27 Q29 Q843 Q184 Q227 Q225 Q163966 Q96 Q17 Q1033 Q191 Q963 Q298 Q750 Q212 Q213 Q833 Q79 Q948 Q817 Q810 Q1016 Q28 Q1952 Q869
(c(Q166142)|c(Q15416),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q1210
relation P840
type Q166142
type Q15416
[ANSWER]
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?c ) WHERE { VALUES ( ?k ) { ( ontology:Q166142 ) ( ontology:Q15416 ) } . ?f rdf:type ?k } GROUP BY ?i } . FILTER ( ?c > ?r ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g property:P840 resource:Q1210 . { { ?g rdf:type ontology:Q166142 } UNION { ?g rdf:type ontology:Q15416 } } } } }
Yemen Israel India Argentina Charente-Maritime France Netherlands Manitoba United Kingdom People's Republic of China Venezuela Nepal Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Syria Peru Cuba Finland Luxembourg Belgium United States of America Poland Philippines Switzerland Italy Capua Colombia North Korea Cambodia Saudi Arabia Kazakhstan Malta Norway Somalia Ireland Spain Pakistan Belarus Azerbaijan Bosnia and Herzegovina Mitte Mexico Japan Nigeria Estonia Botswana Chile Bolivia Ukraine Czech Republic Malaysia Egypt Tunisia Kuwait Jordan Libya Hungary Nova Scotia Thailand
68
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Lombardy
relation narrative location
type application
type television program
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?c ) WHERE { VALUES ( ?k ) { ( ontology:application ) ( ontology:television_program ) } . ?f rdf:type ?k } GROUP BY ?i } . FILTER ( ?c > ?r ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g property:narrative_location resource:Lombardy . { { ?g rdf:type ontology:application } UNION { ?g rdf:type ontology:television_program } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q377277
P840
Q15617994 Q166142 Q15416
USER
And how about Glückstadt?
(c(Q166142)|c(Q15416),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q377277
relation P840
type Q166142
type Q15416
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:P840 resource:Q377277 . { { ?x rdf:type ontology:Q15416 } UNION { ?x rdf:type ontology:Q166142 } } } } . FILTER ( ?m > ?d ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?h WHERE { { ?r property:P840 ?h . ?h rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15416 } UNION { ?r property:P840 ?h . ?h rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q166142 } } GROUP BY ?h } }
Glückstadt
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Glückstadt
relation narrative location
type application
type television program
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:narrative_location resource:Glückstadt . { { ?x rdf:type ontology:television_program } UNION { ?x rdf:type ontology:application } } } } . FILTER ( ?m > ?d ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?h WHERE { { ?r property:narrative_location ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:television_program } UNION { ?r property:narrative_location ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:application } } GROUP BY ?h } }
[]
designation for an administrative territorial entity application television program
SYSTEM
68
Q805 Q801 Q668 Q414 Q3278 Q142 Q55 Q1948 Q145 Q148 Q717 Q837 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q241 Q33 Q32 Q31 Q30 Q36 Q928 Q39 Q38 Q58477 Q739 Q423 Q424 Q851 Q232 Q233 Q20 Q1045 Q27 Q29 Q843 Q184 Q227 Q225 Q163966 Q96 Q17 Q1033 Q191 Q963 Q298 Q750 Q212 Q213 Q833 Q79 Q948 Q817 Q810 Q1016 Q28 Q1952 Q869
(c(Q166142)|c(Q15416),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q377277
relation P840
type Q166142
type Q15416
[ANSWER]
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:P840 resource:Q377277 . { { ?x rdf:type ontology:Q15416 } UNION { ?x rdf:type ontology:Q166142 } } } } . FILTER ( ?m > ?d ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?h WHERE { { ?r property:P840 ?h . ?h rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15416 } UNION { ?r property:P840 ?h . ?h rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q166142 } } GROUP BY ?h } }
Yemen Israel India Argentina Charente-Maritime France Netherlands Manitoba United Kingdom People's Republic of China Venezuela Nepal Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Syria Peru Cuba Finland Luxembourg Belgium United States of America Poland Philippines Switzerland Italy Capua Colombia North Korea Cambodia Saudi Arabia Kazakhstan Malta Norway Somalia Ireland Spain Pakistan Belarus Azerbaijan Bosnia and Herzegovina Mitte Mexico Japan Nigeria Estonia Botswana Chile Bolivia Ukraine Czech Republic Malaysia Egypt Tunisia Kuwait Jordan Libya Hungary Nova Scotia Thailand
68
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Glückstadt
relation narrative location
type application
type television program
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:narrative_location resource:Glückstadt . { { ?x rdf:type ontology:television_program } UNION { ?x rdf:type ontology:application } } } } . FILTER ( ?m > ?d ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?h WHERE { { ?r property:narrative_location ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:television_program } UNION { ?r property:narrative_location ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:application } } GROUP BY ?h } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P530
Q15617994
USER
Who have a diplomatic relationship with Poland ?
(Q36,P530,c(Q15617994))
action filter_type
action find
entity Q36
relation P530
type Q15617994
['Q36', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q36 property:P530 ?w . ?w rdf:type ontology:Q15617994 }
Poland
action filter_type
action find
entity Poland
relation diplomatic relation
type designation for an administrative territorial entity
['Poland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Poland property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(Q36,P530,c(Q15617994))
action filter_type
action find
entity Q36
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with Poland
['Q36', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q36 property:P530 ?w . ?w rdf:type ontology:Q15617994 }
Brazil Italy
Brazil and Italy have a diplomatic relationship with Poland
Brazil Italy
action filter_type
action find
entity Poland
relation diplomatic relation
type designation for an administrative territorial entity
['Poland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Poland property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q155 Q38
P85
Q7725634
USER
Which literary works are the anthems for Brazil and Italy ?
(Q155,P85,c(Q7725634)) (Q38,P85,c(Q7725634))
action union
action filter_type
action find
entity Q155
relation P85
type Q7725634
action filter_type
action find
entity Q38
relation P85
type Q7725634
['Q155', 'P85', {'concept': 'Q7725634'}] ['Q38', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?i WHERE { { resource:Q155 property:P85 ?i . ?i rdf:type ontology:Q7725634 } UNION { resource:Q38 property:P85 ?i . ?i rdf:type ontology:Q7725634 } }
Brazil Italy
action union
action filter_type
action find
entity Brazil
relation anthem
type literary work
action filter_type
action find
entity Italy
relation anthem
type literary work
['Brazil', 'anthem', {'concept': 'literary work'}] ['Italy', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?i WHERE { { resource:Brazil property:anthem ?i . ?i rdf:type ontology:literary_work } UNION { resource:Italy property:anthem ?i . ?i rdf:type ontology:literary_work } }
[]
literary work
Q134654 Q187
SYSTEM
Brazilian National Anthem, Il Canto degli Italiani
Q134654 Q187
(Q155,P85,c(Q7725634)) (Q38,P85,c(Q7725634))
action union
action filter_type
action find
entity Q155
relation P85
type Q7725634
action filter_type
action find
entity Q38
relation P85
type Q7725634
[ANSWERS] are the anthems for Brazil and Italy
['Q155', 'P85', {'concept': 'Q7725634'}] ['Q38', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?i WHERE { { resource:Q155 property:P85 ?i . ?i rdf:type ontology:Q7725634 } UNION { resource:Q38 property:P85 ?i . ?i rdf:type ontology:Q7725634 } }
Brazilian National Anthem Il Canto degli Italiani
Brazilian National Anthem and Il Canto degli Italiani are the anthems for Brazil and Italy
Brazilian National Anthem Il Canto degli Italiani
action union
action filter_type
action find
entity Brazil
relation anthem
type literary work
action filter_type
action find
entity Italy
relation anthem
type literary work
['Brazil', 'anthem', {'concept': 'literary work'}] ['Italy', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?i WHERE { { resource:Brazil property:anthem ?i . ?i rdf:type ontology:literary_work } UNION { resource:Italy property:anthem ?i . ?i rdf:type ontology:literary_work } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q134654 Q187
P85
Q7275
USER
Which states have those literary works as their national anthem ?
(c(Q7275),P85,Q134654) (c(Q7275),P85,Q187)
action filter_type
action find_reverse
entity prev_answer
relation P85
type Q7275
[{'concept': 'Q7275'}, 'P85', 'Q134654'] [{'concept': 'Q7275'}, 'P85', 'Q187']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q7275 . VALUES ( ?a ) { ( resource:Q134654 ) ( resource:Q187 ) } . ?y property:P85 ?a }
Brazilian National Anthem Il Canto degli Italiani
action filter_type
action find_reverse
entity prev_answer
relation anthem
type state
[{'concept': 'state'}, 'anthem', 'Brazilian National Anthem'] [{'concept': 'state'}, 'anthem', 'Il Canto degli Italiani']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:state . VALUES ( ?a ) { ( resource:Brazilian_National_Anthem ) ( resource:Il_Canto_degli_Italiani ) } . ?y property:anthem ?a }
[]
state
Q2414171 Q210542 Q1072140
SYSTEM
First Brazilian Republic, Second Brazilian Republic, Roman Republic
Q2414171 Q210542 Q1072140
(c(Q7275),P85,Q134654) (c(Q7275),P85,Q187)
action filter_type
action find_reverse
entity prev_answer
relation P85
type Q7275
[ANSWERS] have those literary works as their national anthem
[{'concept': 'Q7275'}, 'P85', 'Q134654'] [{'concept': 'Q7275'}, 'P85', 'Q187']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q7275 . VALUES ( ?a ) { ( resource:Q134654 ) ( resource:Q187 ) } . ?y property:P85 ?a }
First Brazilian Republic Second Brazilian Republic Roman Republic
First Brazilian Republic, Second Brazilian Republic and Roman Republic have those literary works as their national anthem
First Brazilian Republic Second Brazilian Republic Roman Republic
action filter_type
action find_reverse
entity prev_answer
relation anthem
type state
[{'concept': 'state'}, 'anthem', 'Brazilian National Anthem'] [{'concept': 'state'}, 'anthem', 'Il Canto degli Italiani']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:state . VALUES ( ?a ) { ( resource:Brazilian_National_Anthem ) ( resource:Il_Canto_degli_Italiani ) } . ?y property:anthem ?a }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2414171 Q210542 Q1072140
P85
Q7725634
USER
Which literary works are the anthems for First Brazilian Republic, Second Brazilian Republic and Roman Republic ?
(Q2414171,P85,c(Q7725634)) (Q210542,P85,c(Q7725634)) (Q1072140,P85,c(Q7725634))
action union
action filter_type
action find
entity Q2414171
relation P85
type Q7725634
action filter_type
action find
entity Q210542
relation P85
type Q7725634
action filter_type
action find
entity Q1072140
relation P85
type Q7725634
['Q2414171', 'P85', {'concept': 'Q7725634'}] ['Q210542', 'P85', {'concept': 'Q7725634'}] ['Q1072140', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { ?o property:P85 ?z . VALUES ( ?o ) { ( resource:Q2414171 ) ( resource:Q210542 ) } }
First Brazilian Republic Second Brazilian Republic Roman Republic
action union
action filter_type
action find
entity First Brazilian Republic
relation anthem
type literary work
action filter_type
action find
entity Second Brazilian Republic
relation anthem
type literary work
action filter_type
action find
entity Roman Republic
relation anthem
type literary work
['First Brazilian Republic', 'anthem', {'concept': 'literary work'}] ['Second Brazilian Republic', 'anthem', {'concept': 'literary work'}] ['Roman Republic', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { ?o property:anthem ?z . VALUES ( ?o ) { ( resource:First_Brazilian_Republic ) ( resource:Second_Brazilian_Republic ) } }
[]
literary work
Q134654 Q134654 Q187
SYSTEM
Il Canto degli Italiani for 3rd, Brazilian National Anthem for 1st, 2nd
Q134654 Q134654 Q187
(Q2414171,P85,c(Q7725634)) (Q210542,P85,c(Q7725634)) (Q1072140,P85,c(Q7725634))
action union
action filter_type
action find
entity Q2414171
relation P85
type Q7725634
action filter_type
action find
entity Q210542
relation P85
type Q7725634
action filter_type
action find
entity Q1072140
relation P85
type Q7725634
[ANSWERS]
['Q2414171', 'P85', {'concept': 'Q7725634'}] ['Q210542', 'P85', {'concept': 'Q7725634'}] ['Q1072140', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { ?o property:P85 ?z . VALUES ( ?o ) { ( resource:Q2414171 ) ( resource:Q210542 ) } }
Brazilian National Anthem Brazilian National Anthem Il Canto degli Italiani
Brazilian National Anthem, Brazilian National Anthem and Il Canto degli Italiani are the anthems for First Brazilian Republic, Second Brazilian Republic and Roman Republic
Brazilian National Anthem Brazilian National Anthem Il Canto degli Italiani
action union
action filter_type
action find
entity First Brazilian Republic
relation anthem
type literary work
action filter_type
action find
entity Second Brazilian Republic
relation anthem
type literary work
action filter_type
action find
entity Roman Republic
relation anthem
type literary work
['First Brazilian Republic', 'anthem', {'concept': 'literary work'}] ['Second Brazilian Republic', 'anthem', {'concept': 'literary work'}] ['Roman Republic', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { ?o property:anthem ?z . VALUES ( ?o ) { ( resource:First_Brazilian_Republic ) ( resource:Second_Brazilian_Republic ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q187
P800
Q502895
USER
Which person has Il Canto degli Italiani as a notable work ?
(c(Q502895),P800,Q187)
action filter_type
action find_reverse
entity Q187
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q187']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P800 resource:Q187 }
Il Canto degli Italiani
action filter_type
action find_reverse
entity Il Canto degli Italiani
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Il Canto degli Italiani']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:notable_work resource:Il_Canto_degli_Italiani }
[]
common name
Q1407455
SYSTEM
Michele Novaro
Q1407455
(c(Q502895),P800,Q187)
action filter_type
action find_reverse
entity Q187
relation P800
type Q502895
[ANSWER] has Il Canto degli Italiani as a notable work
[{'concept': 'Q502895'}, 'P800', 'Q187']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P800 resource:Q187 }
Michele Novaro
Michele Novaro has Il Canto degli Italiani as a notable work
Michele Novaro
action filter_type
action find_reverse
entity Il Canto degli Italiani
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Il Canto degli Italiani']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:notable_work resource:Il_Canto_degli_Italiani }
[]