Simple Question (Direct)
Simple Question
Q340127
P86
Q502895
USER
Who did the compostion for Ace Ventura: When Nature Calls ?
(Q340127,P86,c(Q502895))
action filter_type
action find
entity Q340127
relation P86
type Q502895
['Q340127', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q340127 property:P86 ?m }
Ace Ventura: When Nature Calls
action filter_type
action find
entity Ace Ventura: When Nature Calls
relation composer
type common name
['Ace Ventura: When Nature Calls', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Ace_Ventura:_When_Nature_Calls property:composer ?m }
[]
common name
Q717663
SYSTEM
Robert Folk
Q717663
(Q340127,P86,c(Q502895))
action filter_type
action find
entity Q340127
relation P86
type Q502895
[ANSWER] did the compostion for Ace Ventura: When Nature calls
['Q340127', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q340127 property:P86 ?m }
Robert Folk
Robert Folk did the compostion for Ace Ventura: When Nature calls
Robert Folk
action filter_type
action find
entity Ace Ventura: When Nature Calls
relation composer
type common name
['Ace Ventura: When Nature Calls', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Ace_Ventura:_When_Nature_Calls property:composer ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q340127
P144
Q502895
USER
Which person does that work of art extend upon ?
(Q717663,P144,c(Q502895))
action filter_type
action find
entity Q340127
relation P144
type Q502895
['Q717663', 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q340127 property:P144 ?s . ?s rdf:type ontology:Q502895 }
Ace Ventura: When Nature Calls
action filter_type
action find
entity Ace Ventura: When Nature Calls
relation based on
type common name
['Robert Folk', 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Ace_Ventura:_When_Nature_Calls property:based_on ?s . ?s rdf:type ontology:common_name }
[]
common name
Q3157127
SYSTEM
Jack Bernstein
Q3157127
(Q717663,P144,c(Q502895))
action filter_type
action find
entity Q340127
relation P144
type Q502895
That work of art extends to [ANSWER]
['Q717663', 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q340127 property:P144 ?s . ?s rdf:type ontology:Q502895 }
Jack Bernstein
That work of art extends to Jack Bernstein
Jack Bernstein
action filter_type
action find
entity Ace Ventura: When Nature Calls
relation based on
type common name
['Robert Folk', 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Ace_Ventura:_When_Nature_Calls property:based_on ?s . ?s rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3157127 Q574373 Q73552
P27
Q15617994
USER
Is Jack Bernstein a native of Dotzheim and Castelraimondo ?
(Q3157127,P27,Q574373) (Q3157127,P27,Q73552)
action is_in
entity Q3157127
action intersection
action find_reverse
entity Q574373
relation P27
action find_reverse
entity Q73552
relation P27
['Q3157127', 'P27', 'Q574373'] ['Q3157127', 'P27', 'Q73552']
ASK WHERE { resource:Q3157127 property:P27 resource:Q574373 . resource:Q3157127 property:P27 resource:Q73552 }
Jack Bernstein Dotzheim Castelraimondo
action is_in
entity Jack Bernstein
action intersection
action find_reverse
entity Dotzheim
relation country of citizenship
action find_reverse
entity Castelraimondo
relation country of citizenship
['Jack Bernstein', 'country of citizenship', 'Dotzheim'] ['Jack Bernstein', 'country of citizenship', 'Castelraimondo']
ASK WHERE { resource:Jack_Bernstein property:country_of_citizenship resource:Dotzheim . resource:Jack_Bernstein property:country_of_citizenship resource:Castelraimondo }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3157127,P27,Q574373) (Q3157127,P27,Q73552)
action is_in
entity Q3157127
action intersection
action find_reverse
entity Q574373
relation P27
action find_reverse
entity Q73552
relation P27
[ANSWER]
['Q3157127', 'P27', 'Q574373'] ['Q3157127', 'P27', 'Q73552']
ASK WHERE { resource:Q3157127 property:P27 resource:Q574373 . resource:Q3157127 property:P27 resource:Q73552 }
No
action is_in
entity Jack Bernstein
action intersection
action find_reverse
entity Dotzheim
relation country of citizenship
action find_reverse
entity Castelraimondo
relation country of citizenship
['Jack Bernstein', 'country of citizenship', 'Dotzheim'] ['Jack Bernstein', 'country of citizenship', 'Castelraimondo']
ASK WHERE { resource:Jack_Bernstein property:country_of_citizenship resource:Dotzheim . resource:Jack_Bernstein property:country_of_citizenship resource:Castelraimondo }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6513940 Q73552
P17
Q15617994
USER
Which administrative territories are Castelraimondo or Sokumvatnet present in ?
OR((Q73552,P17,c(Q15617994)), (Q6513940,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q73552
relation P17
action find
entity Q6513940
relation P17
type Q15617994
{'OR': [['Q73552', 'P17', {'concept': 'Q15617994'}], ['Q6513940', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { ?f property:P17 ?g . VALUES ( ?f ) { ( resource:Q73552 ) ( resource:Q6513940 ) } } . ?g rdf:type ontology:Q15617994 }
Sokumvatnet Castelraimondo
action filter_type
action union
action find
entity Castelraimondo
relation country
action find
entity Sokumvatnet
relation country
type designation for an administrative territorial entity
{'OR': [['Castelraimondo', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Sokumvatnet', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { ?f property:country ?g . VALUES ( ?f ) { ( resource:Castelraimondo ) ( resource:Sokumvatnet ) } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q38
SYSTEM
Norway, Italy
Q20 Q38
OR((Q73552,P17,c(Q15617994)), (Q6513940,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q73552
relation P17
action find
entity Q6513940
relation P17
type Q15617994
Castelraimondo or Sokumvatnet are in [ANSWERS]
{'OR': [['Q73552', 'P17', {'concept': 'Q15617994'}], ['Q6513940', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { ?f property:P17 ?g . VALUES ( ?f ) { ( resource:Q73552 ) ( resource:Q6513940 ) } } . ?g rdf:type ontology:Q15617994 }
Norway Italy
Castelraimondo or Sokumvatnet are in Norway and Italy
Norway Italy
action filter_type
action union
action find
entity Castelraimondo
relation country
action find
entity Sokumvatnet
relation country
type designation for an administrative territorial entity
{'OR': [['Castelraimondo', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Sokumvatnet', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { ?f property:country ?g . VALUES ( ?f ) { ( resource:Castelraimondo ) ( resource:Sokumvatnet ) } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16984777
P17
Q628179
USER
Are South Lake Trail present in those administrative territories ?
(Q16984777,P17,Q20) (Q16984777,P17,Q38)
action is_in
entity prev_answer
action find
entity Q16984777
relation P17
['Q16984777', 'P17', 'Q20'] ['Q16984777', 'P17', 'Q38']
ASK WHERE { VALUES ( ?j ) { ( resource:Q20 ) ( resource:Q38 ) } . resource:Q16984777 property:P17 ?j }
South Lake Trail
action is_in
entity prev_answer
action find
entity South Lake Trail
relation country
['South Lake Trail', 'country', 'Norway'] ['South Lake Trail', 'country', 'Italy']
ASK WHERE { VALUES ( ?j ) { ( resource:Norway ) ( resource:Italy ) } . resource:South_Lake_Trail property:country ?j }
[]
trail
SYSTEM
NO
(Q16984777,P17,Q20) (Q16984777,P17,Q38)
action is_in
entity prev_answer
action find
entity Q16984777
relation P17
[ANSWER]
['Q16984777', 'P17', 'Q20'] ['Q16984777', 'P17', 'Q38']
ASK WHERE { VALUES ( ?j ) { ( resource:Q20 ) ( resource:Q38 ) } . resource:Q16984777 property:P17 ?j }
No
action is_in
entity prev_answer
action find
entity South Lake Trail
relation country
['South Lake Trail', 'country', 'Norway'] ['South Lake Trail', 'country', 'Italy']
ASK WHERE { VALUES ( ?j ) { ( resource:Norway ) ( resource:Italy ) } . resource:South_Lake_Trail property:country ?j }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q717663 Q503261 Q554872
P27
Q15617994
USER
Is Robert Folk a citizen of Lamstedt and Wüstheuterode ?
(Q717663,P27,Q503261) (Q717663,P27,Q554872)
action is_in
entity Q717663
action intersection
action find_reverse
entity Q503261
relation P27
action find_reverse
entity Q554872
relation P27
['Q717663', 'P27', 'Q503261'] ['Q717663', 'P27', 'Q554872']
ASK WHERE { resource:Q717663 property:P27 resource:Q503261 . resource:Q717663 property:P27 resource:Q554872 }
Robert Folk Lamstedt Wüstheuterode
action is_in
entity Robert Folk
action intersection
action find_reverse
entity Lamstedt
relation country of citizenship
action find_reverse
entity Wüstheuterode
relation country of citizenship
['Robert Folk', 'country of citizenship', 'Lamstedt'] ['Robert Folk', 'country of citizenship', 'Wüstheuterode']
ASK WHERE { resource:Robert_Folk property:country_of_citizenship resource:Lamstedt . resource:Robert_Folk property:country_of_citizenship resource:Wüstheuterode }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q717663,P27,Q503261) (Q717663,P27,Q554872)
action is_in
entity Q717663
action intersection
action find_reverse
entity Q503261
relation P27
action find_reverse
entity Q554872
relation P27
[ANSWER]
['Q717663', 'P27', 'Q503261'] ['Q717663', 'P27', 'Q554872']
ASK WHERE { resource:Q717663 property:P27 resource:Q503261 . resource:Q717663 property:P27 resource:Q554872 }
No
action is_in
entity Robert Folk
action intersection
action find_reverse
entity Lamstedt
relation country of citizenship
action find_reverse
entity Wüstheuterode
relation country of citizenship
['Robert Folk', 'country of citizenship', 'Lamstedt'] ['Robert Folk', 'country of citizenship', 'Wüstheuterode']
ASK WHERE { resource:Robert_Folk property:country_of_citizenship resource:Lamstedt . resource:Robert_Folk property:country_of_citizenship resource:Wüstheuterode }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q28
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with greater number of administrative territories than Hungary ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q28
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?g ) WHERE { ?c property:P530 ?r . ?c rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { resource:Q28 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?k ) }
Hungary
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Hungary
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?g ) WHERE { ?c property:diplomatic_relation ?r . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { resource:Hungary property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q1049 Q843 Q228 Q227 Q224 Q222 Q347 Q17 Q974 Q1033 Q298 Q115 Q114 Q212 Q213 Q211 Q215 Q916 Q79 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q28
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with greater number of administrative territories than Hungary
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?g ) WHERE { ?c property:P530 ?r . ?c rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { resource:Q28 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?k ) }
Israel Yemen India Argentina France United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Sudan Pakistan Andorra Azerbaijan Croatia Albania Liechtenstein Japan Democratic Republic of the Congo Nigeria Chile Ethiopia Kenya Ukraine Czech Republic Latvia Slovenia Angola Egypt Jordan Libya Cape Verde Spain Zambia
Italy, Brazil and United States of America have diplomatic relations with greater number of administrative territories than Hungary
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Hungary
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?g ) WHERE { ?c property:diplomatic_relation ?r . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { resource:Hungary property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q878
P530
Q15617994 Q15617994
USER
And what about United Arab Emirates?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q878
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?y ) WHERE { ?j property:P530 ?t . ?j rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:Q878 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?y > ?n ) }
United Arab Emirates
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity United Arab Emirates
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?y ) WHERE { ?j property:diplomatic_relation ?t . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:United_Arab_Emirates property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y > ?n ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q1049 Q843 Q228 Q227 Q224 Q222 Q347 Q17 Q974 Q1033 Q298 Q115 Q114 Q212 Q213 Q211 Q215 Q916 Q79 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q878
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?y ) WHERE { ?j property:P530 ?t . ?j rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:Q878 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?y > ?n ) }
Israel Yemen India Argentina France United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Sudan Pakistan Andorra Azerbaijan Croatia Albania Liechtenstein Japan Democratic Republic of the Congo Nigeria Chile Ethiopia Kenya Ukraine Czech Republic Latvia Slovenia Angola Egypt Jordan Libya Cape Verde Spain Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity United Arab Emirates
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?y ) WHERE { ?j property:diplomatic_relation ?t . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:United_Arab_Emirates property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y > ?n ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q54616
P530
Q15617994
USER
Are Grotteria known to have diplomatic connections with those ones ?
(Q54616,P530,Q38) (Q54616,P530,Q155) (Q54616,P530,Q30)
action is_in
entity prev_answer
action find
entity Q54616
relation P530
['Q54616', 'P530', 'Q38'] ['Q54616', 'P530', 'Q155'] ['Q54616', 'P530', 'Q30']
ASK WHERE { VALUES ( ?j ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q668 ) } . resource:Q54616 property:P530 ?j }
Grotteria
action is_in
entity prev_answer
action find
entity Grotteria
relation diplomatic relation
['Grotteria', 'diplomatic relation', 'Italy'] ['Grotteria', 'diplomatic relation', 'Brazil'] ['Grotteria', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?j ) { ( resource:Israel ) ( resource:Yemen ) ( resource:India ) } . resource:Grotteria property:diplomatic_relation ?j }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q54616,P530,Q38) (Q54616,P530,Q155) (Q54616,P530,Q30)
action is_in
entity prev_answer
action find
entity Q54616
relation P530
[ANSWER]
['Q54616', 'P530', 'Q38'] ['Q54616', 'P530', 'Q155'] ['Q54616', 'P530', 'Q30']
ASK WHERE { VALUES ( ?j ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q668 ) } . resource:Q54616 property:P530 ?j }
No
action is_in
entity prev_answer
action find
entity Grotteria
relation diplomatic relation
['Grotteria', 'diplomatic relation', 'Italy'] ['Grotteria', 'diplomatic relation', 'Brazil'] ['Grotteria', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?j ) { ( resource:Israel ) ( resource:Yemen ) ( resource:India ) } . resource:Grotteria property:diplomatic_relation ?j }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q340127 Q6984016 Q30
P495
Q15617994
USER
Did Ace Ventura: When Nature Calls originate in Neah-Kah-Nie School District and United States of America ?
(Q340127,P495,Q6984016) (Q340127,P495,Q30)
action is_in
entity Q340127
action intersection
action find_reverse
entity Q6984016
relation P495
action find_reverse
entity Q30
relation P495
['Q340127', 'P495', 'Q6984016'] ['Q340127', 'P495', 'Q30']
ASK WHERE { resource:Q340127 property:P495 resource:Q6984016 . resource:Q340127 property:P495 resource:Q30 }
Ace Ventura: When Nature Calls Neah-Kah-Nie School District United States of America
action is_in
entity Ace Ventura: When Nature Calls
action intersection
action find_reverse
entity Neah-Kah-Nie School District
relation country of origin
action find_reverse
entity United States of America
relation country of origin
['Ace Ventura: When Nature Calls', 'country of origin', 'Neah-Kah-Nie School District'] ['Ace Ventura: When Nature Calls', 'country of origin', 'United States of America']
ASK WHERE { resource:Ace_Ventura:_When_Nature_Calls property:country_of_origin resource:Neah-Kah-Nie_School_District . resource:Ace_Ventura:_When_Nature_Calls property:country_of_origin resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q340127,P495,Q6984016) (Q340127,P495,Q30)
action is_in
entity Q340127
action intersection
action find_reverse
entity Q6984016
relation P495
action find_reverse
entity Q30
relation P495
[ANSWER]
['Q340127', 'P495', 'Q6984016'] ['Q340127', 'P495', 'Q30']
ASK WHERE { resource:Q340127 property:P495 resource:Q6984016 . resource:Q340127 property:P495 resource:Q30 }
NO and YES respectively
action is_in
entity Ace Ventura: When Nature Calls
action intersection
action find_reverse
entity Neah-Kah-Nie School District
relation country of origin
action find_reverse
entity United States of America
relation country of origin
['Ace Ventura: When Nature Calls', 'country of origin', 'Neah-Kah-Nie School District'] ['Ace Ventura: When Nature Calls', 'country of origin', 'United States of America']
ASK WHERE { resource:Ace_Ventura:_When_Nature_Calls property:country_of_origin resource:Neah-Kah-Nie_School_District . resource:Ace_Ventura:_When_Nature_Calls property:country_of_origin resource:United_States_of_America }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q171453 Q340127
P915
Q852446
USER
Which US administrative territories were Ace Ventura: When Nature Calls or Transformers filmed ?
OR((Q340127,P915,c(Q852446)), (Q171453,P915,c(Q852446)))
action filter_type
action union
action find
entity Q340127
relation P915
action find
entity Q171453
relation P915
type Q852446
{'OR': [['Q340127', 'P915', {'concept': 'Q852446'}], ['Q171453', 'P915', {'concept': 'Q852446'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q340127 property:P915 ?s } UNION { resource:Q171453 property:P915 ?s } } . ?s rdf:type ontology:Q852446 }
Transformers Ace Ventura: When Nature Calls
action filter_type
action union
action find
entity Ace Ventura: When Nature Calls
relation filming location
action find
entity Transformers
relation filming location
type administrative territorial entity of the United States
{'OR': [['Ace Ventura: When Nature Calls', 'filming location', {'concept': 'administrative territorial entity of the United States'}], ['Transformers', 'filming location', {'concept': 'administrative territorial entity of the United States'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Ace_Ventura:_When_Nature_Calls property:filming_location ?s } UNION { resource:Transformers property:filming_location ?s } } . ?s rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1456 Q1522
SYSTEM
South Carolina, New Mexico
Q1456 Q1522
OR((Q340127,P915,c(Q852446)), (Q171453,P915,c(Q852446)))
action filter_type
action union
action find
entity Q340127
relation P915
action find
entity Q171453
relation P915
type Q852446
[ANSWERS] were Ace Ventura: When Nature calls or Transformers filmed
{'OR': [['Q340127', 'P915', {'concept': 'Q852446'}], ['Q171453', 'P915', {'concept': 'Q852446'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q340127 property:P915 ?s } UNION { resource:Q171453 property:P915 ?s } } . ?s rdf:type ontology:Q852446 }
South Carolina New Mexico
South Carolina and New Mexico were Ace Ventura: When Nature calls or Transformers filmed
South Carolina New Mexico
action filter_type
action union
action find
entity Ace Ventura: When Nature Calls
relation filming location
action find
entity Transformers
relation filming location
type administrative territorial entity of the United States
{'OR': [['Ace Ventura: When Nature Calls', 'filming location', {'concept': 'administrative territorial entity of the United States'}], ['Transformers', 'filming location', {'concept': 'administrative territorial entity of the United States'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Ace_Ventura:_When_Nature_Calls property:filming_location ?s } UNION { resource:Transformers property:filming_location ?s } } . ?s rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1522
P551
Q502895
USER
Who lives in that US administrative territory ?
(c(Q502895),P551,Q1522)
action filter_type
action find_reverse
entity Q1522
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q1522']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P551 resource:Q1522 }
New Mexico
action filter_type
action find_reverse
entity New Mexico
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'New Mexico']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:residence resource:New_Mexico }
[]
common name
Clarification for simple ques.
Q1456
SYSTEM
Did you mean South Carolina ?
Q1456 Q1522
(c(Q502895),P551,Q1456) (c(Q502895),P551,Q1522)
[ANSWER]
[{'concept': 'Q502895'}, 'P551', 'Q1456'] [{'concept': 'Q502895'}, 'P551', 'Q1522']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P551 resource:Q1522 }
South Carolina New Mexico
Did you mean South Carolina ?
South Carolina
[{'concept': 'common name'}, 'residence', 'South Carolina'] [{'concept': 'common name'}, 'residence', 'New Mexico']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:residence resource:New_Mexico }
[]
Simple Question (Coreferenced)
USER
No, I meant New Mexico. Could you tell me the answer for that?
(c(Q502895),P551,Q1522)
Q1522
[{'concept': 'Q502895'}, 'P551', 'Q1522']
[{'concept': 'common name'}, 'residence', 'New Mexico']
[]
Q108283 Q173585 Q316788
SYSTEM
Alan Arkin, Jessica Lange, Jack Williamson
Q11339606 Q6787501 Q173585 Q316788 Q108283 Q17155931 Q17285404 Q18643272 Q457185
(c(Q502895),P551,Q1522)
action filter_type
action find_reverse
entity Q1522
relation P551
type Q502895
[ANSWERS] live in that US administrative territory
[{'concept': 'Q502895'}, 'P551', 'Q1522']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P551 resource:Q1522 }
Mike E. Smith Matilda Coxe Stevenson Jessica Lange Jack Williamson Alan Arkin Charlotte Cortlandt Ellis Margaret Catherine Alice Hyson Nicolas Petit Stephen R. Donaldson
Alan Arkin, Jessica Lange and Jack Williamson live in that US administrative territory
Alan Arkin Jessica Lange Jack Williamson
action filter_type
action find_reverse
entity New Mexico
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'New Mexico']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:residence resource:New_Mexico }
[]