Simple Question (Direct)
Simple Question
Q844506
P495
Q15617994
USER
Where did Me, Myself & Irene originate ?
(Q844506,P495,c(Q15617994))
action filter_type
action find
entity Q844506
relation P495
type Q15617994
['Q844506', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q844506 property:P495 ?i . ?i rdf:type ontology:Q15617994 }
Me, Myself & Irene
action filter_type
action find
entity Me, Myself & Irene
relation country of origin
type designation for an administrative territorial entity
['Me, Myself & Irene', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Me,_Myself_&_Irene property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q844506,P495,c(Q15617994))
action filter_type
action find
entity Q844506
relation P495
type Q15617994
Me , Myself & Irene originated from [ANSWER]
['Q844506', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q844506 property:P495 ?i . ?i rdf:type ontology:Q15617994 }
United States of America
Me , Myself & Irene originated from United States of America
United States of America
action filter_type
action find
entity Me, Myself & Irene
relation country of origin
type designation for an administrative territorial entity
['Me, Myself & Irene', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Me,_Myself_&_Irene property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q844506
P58
Q16979650
USER
Who wrote the script for Me, Myself & Irene ?
(Q844506,P58,c(Q16979650))
action filter_type
action find
entity Q844506
relation P58
type Q16979650
['Q844506', 'P58', {'concept': 'Q16979650'}]
SELECT DISTINCT ?y WHERE { resource:Q844506 property:P58 ?y . ?y rdf:type ontology:Q16979650 }
Me, Myself & Irene
action filter_type
action find
entity Me, Myself & Irene
relation screenwriter
type sibling group
['Me, Myself & Irene', 'screenwriter', {'concept': 'sibling group'}]
SELECT DISTINCT ?y WHERE { resource:Me,_Myself_&_Irene property:screenwriter ?y . ?y rdf:type ontology:sibling_group }
[]
sibling group
Q262337
SYSTEM
Farrelly brothers
Q262337
(Q844506,P58,c(Q16979650))
action filter_type
action find
entity Q844506
relation P58
type Q16979650
The [ANSWER] wrote the script for Me, Myself & Irene
['Q844506', 'P58', {'concept': 'Q16979650'}]
SELECT DISTINCT ?y WHERE { resource:Q844506 property:P58 ?y . ?y rdf:type ontology:Q16979650 }
Farrelly brothers
The Farrelly brothers wrote the script for Me, Myself & Irene
Farrelly brothers
action filter_type
action find
entity Me, Myself & Irene
relation screenwriter
type sibling group
['Me, Myself & Irene', 'screenwriter', {'concept': 'sibling group'}]
SELECT DISTINCT ?y WHERE { resource:Me,_Myself_&_Irene property:screenwriter ?y . ?y rdf:type ontology:sibling_group }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q15617994 Q62447 Q79529
USER
Which administrative territories are the etymology of max number of aerodromes and chemical substances ?
(c(Q62447)|c(Q79529),P138,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q79529
[[{'concept': 'Q62447'}, {'concept': 'Q79529'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?b ) WHERE { { ?c property:P138 ?p . ?p rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q79529 } UNION { ?c property:P138 ?p . ?p rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q62447 } } GROUP BY ?p } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?f ) { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:P138 ?n . ?n rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q79529 } UNION { ?m property:P138 ?n . ?n rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q62447 } } GROUP BY ?n } } }
action argmax
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type chemical substance
[[{'concept': 'aerodrome'}, {'concept': 'chemical substance'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?b ) WHERE { { ?c property:named_after ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:chemical_substance } UNION { ?c property:named_after ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:aerodrome } } GROUP BY ?p } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?f ) { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:named_after ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:chemical_substance } UNION { ?m property:named_after ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:aerodrome } } GROUP BY ?n } } }
[]
designation for an administrative territorial entity aerodrome chemical substance
Q142 Q36 Q971
SYSTEM
France, Poland, Republic of the Congo
Q36 Q3139 Q40131 Q205050 Q142 Q971
(c(Q62447)|c(Q79529),P138,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q79529
[ANSWERS] are the etymology of max number of aerodromes and chemical substances
[[{'concept': 'Q62447'}, {'concept': 'Q79529'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?b ) WHERE { { ?c property:P138 ?p . ?p rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q79529 } UNION { ?c property:P138 ?p . ?p rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q62447 } } GROUP BY ?p } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?f ) { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:P138 ?n . ?n rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q79529 } UNION { ?m property:P138 ?n . ?n rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q62447 } } GROUP BY ?n } } }
Poland Alpes-Maritimes Chiavenna Geilenkirchen France Republic of the Congo
France, Poland and Republic of the Congo are the etymology of max number of aerodromes and chemical substances
France Poland Republic of the Congo
action argmax
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type chemical substance
[[{'concept': 'aerodrome'}, {'concept': 'chemical substance'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?b ) WHERE { { ?c property:named_after ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:chemical_substance } UNION { ?c property:named_after ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:aerodrome } } GROUP BY ?p } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?f ) { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:named_after ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:chemical_substance } UNION { ?m property:named_after ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:aerodrome } } GROUP BY ?n } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q14170311 Q844506
P161 P86
Q502895
USER
Which people composed Me, Myself & Irene or starred in Profile ?
OR((Q844506,P86,c(Q502895)), (Q14170311,P161,c(Q502895)))
action filter_type
action union
action find
entity Q844506
relation P86
action find
entity Q14170311
relation P161
type Q502895
{'OR': [['Q844506', 'P86', {'concept': 'Q502895'}], ['Q14170311', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q844506 property:P86 ?x } UNION { resource:Q14170311 property:P161 ?x } } . ?x rdf:type ontology:Q502895 }
Profile Me, Myself & Irene
action filter_type
action union
action find
entity Me, Myself & Irene
relation composer
action find
entity Profile
relation cast member
type common name
{'OR': [['Me, Myself & Irene', 'composer', {'concept': 'common name'}], ['Profile', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Me,_Myself_&_Irene property:composer ?x } UNION { resource:Profile property:cast_member ?x } } . ?x rdf:type ontology:common_name }
[]
common name
Q2799612 Q22695882 Q179960 Q371972 Q7491418 Q22695872 Q22695874 Q22695865 Q22677372 Q22670409
SYSTEM
Some of them are Carolyn McCormick, Betty Vaughn, Steven Hill, Faran Tahir, Shawn Michael Howard, Francesca Rizzo, Joe Jamrog, William Carden, Reggie Montgomery, Frances Chaney
Q3771988 Q336185 Q22677386 Q22662733 Q22695869 Q442360 Q22670007 Q21517119 Q371972 Q203960 Q22695865 Q4794510 Q22677372 Q237925 Q22662745 Q22695877 Q22695880 Q22575744 Q939105 Q7491418 Q22687852 Q22667699 Q22695879 Q291552 Q22695859 Q1198897 Q22695870 Q22695873 Q22695872 Q22670409 Q22695874 Q179960 Q22676804 Q9156205 Q1345052 Q531869 Q22670010 Q22695884 Q421707 Q22662921 Q22695882 Q22673359 Q2799612
OR((Q844506,P86,c(Q502895)), (Q14170311,P161,c(Q502895)))
action filter_type
action union
action find
entity Q844506
relation P86
action find
entity Q14170311
relation P161
type Q502895
[ANSWERS] composed Me, Myself & Irene or starred in Profile
{'OR': [['Q844506', 'P86', {'concept': 'Q502895'}], ['Q14170311', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q844506 property:P86 ?x } UNION { resource:Q14170311 property:P161 ?x } } . ?x rdf:type ontology:Q502895 }
Glenn Taranto Chris Noth Charlotte Colavin Christine Farrell Barry Squitieri Sharon Angela P.J. Barry Garland Whitt Faran Tahir James Earl Jones William Carden Cecilia Hart Reggie Montgomery Jill Hennessy Richard Litt Oni Faida Lampley Amanda KC Elizabeth Swackhamer Pete Yorn Shawn Michael Howard Mark Lotito Joseph Mosso Mary Pérez Lynn Cohen Brian Davies S. Epatha Merkerson Jim Iorio Seth Jerome Walker Francesca Rizzo Frances Chaney Joe Jamrog Steven Hill José Rabelo Anthony Fusco Joe Seneca Michael Moriarty Bruce Katzman C. Arthur Smith Jerry Orbach Jose Ynoa Betty Vaughn Lenore Harris Carolyn McCormick
Carolyn McCormick, Betty Vaughn, Steven Hill, Faran Tahir, Shawn Michael Howard, Francesca Rizzo, Joe Jamrog, William Carden, Reggie Montgomery and Frances Chaney composed Me, Myself & Irene or starred in Profile
Carolyn McCormick Betty Vaughn Steven Hill Faran Tahir Shawn Michael Howard Francesca Rizzo Joe Jamrog William Carden Reggie Montgomery Frances Chaney
action filter_type
action union
action find
entity Me, Myself & Irene
relation composer
action find
entity Profile
relation cast member
type common name
{'OR': [['Me, Myself & Irene', 'composer', {'concept': 'common name'}], ['Profile', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Me,_Myself_&_Irene property:composer ?x } UNION { resource:Profile property:cast_member ?x } } . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2799612 Q22695882 Q179960 Q371972 Q7491418 Q22695872 Q22695874 Q22695865 Q22677372 Q22670409
P21
Q290
USER
What are the sex of those people ?
(Q2799612,P21,c(Q290)) (Q22695882,P21,c(Q290)) (Q179960,P21,c(Q290)) (Q371972,P21,c(Q290)) (Q7491418,P21,c(Q290)) (Q22695872,P21,c(Q290)) (Q22695874,P21,c(Q290)) (Q22695865,P21,c(Q290)) (Q22677372,P21,c(Q290)) (Q22670409,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q2799612', 'P21', {'concept': 'Q290'}] ['Q22695882', 'P21', {'concept': 'Q290'}] ['Q179960', 'P21', {'concept': 'Q290'}] ['Q371972', 'P21', {'concept': 'Q290'}] ['Q7491418', 'P21', {'concept': 'Q290'}] ['Q22695872', 'P21', {'concept': 'Q290'}] ['Q22695874', 'P21', {'concept': 'Q290'}] ['Q22695865', 'P21', {'concept': 'Q290'}] ['Q22677372', 'P21', {'concept': 'Q290'}] ['Q22670409', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?p property:P21 ?r . ?r rdf:type ontology:Q290 . VALUES ( ?p ) { ( resource:Q3771988 ) ( resource:Q336185 ) ( resource:Q22677386 ) } }
Carolyn McCormick Betty Vaughn Steven Hill Faran Tahir Shawn Michael Howard Francesca Rizzo Joe Jamrog William Carden Reggie Montgomery Frances Chaney
action filter_type
action find
entity prev_answer
relation gender
type sex
['Carolyn McCormick', 'gender', {'concept': 'sex'}] ['Betty Vaughn', 'gender', {'concept': 'sex'}] ['Steven Hill', 'gender', {'concept': 'sex'}] ['Faran Tahir', 'gender', {'concept': 'sex'}] ['Shawn Michael Howard', 'gender', {'concept': 'sex'}] ['Francesca Rizzo', 'gender', {'concept': 'sex'}] ['Joe Jamrog', 'gender', {'concept': 'sex'}] ['William Carden', 'gender', {'concept': 'sex'}] ['Reggie Montgomery', 'gender', {'concept': 'sex'}] ['Frances Chaney', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?p property:gender ?r . ?r rdf:type ontology:sex . VALUES ( ?p ) { ( resource:Glenn_Taranto ) ( resource:Chris_Noth ) ( resource:Charlotte_Colavin ) } }
[]
sex
Q6581072 Q6581072 Q6581097
SYSTEM
male for 3rd, female for 1st, 2nd
Q6581072 Q6581072 Q6581097 Q6581097 Q6581097 Q6581072 Q6581097 Q6581097 Q6581097 Q6581072
(Q2799612,P21,c(Q290)) (Q22695882,P21,c(Q290)) (Q179960,P21,c(Q290)) (Q371972,P21,c(Q290)) (Q7491418,P21,c(Q290)) (Q22695872,P21,c(Q290)) (Q22695874,P21,c(Q290)) (Q22695865,P21,c(Q290)) (Q22677372,P21,c(Q290)) (Q22670409,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q2799612', 'P21', {'concept': 'Q290'}] ['Q22695882', 'P21', {'concept': 'Q290'}] ['Q179960', 'P21', {'concept': 'Q290'}] ['Q371972', 'P21', {'concept': 'Q290'}] ['Q7491418', 'P21', {'concept': 'Q290'}] ['Q22695872', 'P21', {'concept': 'Q290'}] ['Q22695874', 'P21', {'concept': 'Q290'}] ['Q22695865', 'P21', {'concept': 'Q290'}] ['Q22677372', 'P21', {'concept': 'Q290'}] ['Q22670409', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?p property:P21 ?r . ?r rdf:type ontology:Q290 . VALUES ( ?p ) { ( resource:Q3771988 ) ( resource:Q336185 ) ( resource:Q22677386 ) } }
female female male male male female male male male female
The sex of those people are female, female and male
female female male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Carolyn McCormick', 'gender', {'concept': 'sex'}] ['Betty Vaughn', 'gender', {'concept': 'sex'}] ['Steven Hill', 'gender', {'concept': 'sex'}] ['Faran Tahir', 'gender', {'concept': 'sex'}] ['Shawn Michael Howard', 'gender', {'concept': 'sex'}] ['Francesca Rizzo', 'gender', {'concept': 'sex'}] ['Joe Jamrog', 'gender', {'concept': 'sex'}] ['William Carden', 'gender', {'concept': 'sex'}] ['Reggie Montgomery', 'gender', {'concept': 'sex'}] ['Frances Chaney', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?p property:gender ?r . ?r rdf:type ontology:sex . VALUES ( ?p ) { ( resource:Glenn_Taranto ) ( resource:Chris_Noth ) ( resource:Charlotte_Colavin ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P159
Q874405
USER
Which social group has headquarters located at Poland ?
(c(Q874405),P159,Q36)
action filter_type
action find_reverse
entity Q36
relation P159
type Q874405
[{'concept': 'Q874405'}, 'P159', 'Q36']
SELECT DISTINCT ?v WHERE { ?v property:P159 resource:Q36 . ?v rdf:type ontology:Q874405 }
Poland
action filter_type
action find_reverse
entity Poland
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Poland']
SELECT DISTINCT ?v WHERE { ?v property:headquarters_location resource:Poland . ?v rdf:type ontology:social_group }
[]
social group
Q2419580
SYSTEM
Alliance Française in Poland
Q2419580
(c(Q874405),P159,Q36)
action filter_type
action find_reverse
entity Q36
relation P159
type Q874405
[ANSWER] has headquarters located at Poland
[{'concept': 'Q874405'}, 'P159', 'Q36']
SELECT DISTINCT ?v WHERE { ?v property:P159 resource:Q36 . ?v rdf:type ontology:Q874405 }
Alliance Française in Poland
Alliance Française in Poland has headquarters located at Poland
Alliance Française in Poland
action filter_type
action find_reverse
entity Poland
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Poland']
SELECT DISTINCT ?v WHERE { ?v property:headquarters_location resource:Poland . ?v rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q179960
P20
Q2983893
USER
Where did Steven Hill expire ?
(Q179960,P20,c(Q2983893))
action filter_type
action find
entity Q179960
relation P20
type Q2983893
['Q179960', 'P20', {'concept': 'Q2983893'}]
SELECT DISTINCT ?w WHERE { resource:Q179960 property:P20 ?w . ?w rdf:type ontology:Q2983893 }
Steven Hill
action filter_type
action find
entity Steven Hill
relation place of death
type urban district
['Steven Hill', 'place of death', {'concept': 'urban district'}]
SELECT DISTINCT ?w WHERE { resource:Steven_Hill property:place_of_death ?w . ?w rdf:type ontology:urban_district }
[]
urban district
Q11299
SYSTEM
Manhattan
Q11299
(Q179960,P20,c(Q2983893))
action filter_type
action find
entity Q179960
relation P20
type Q2983893
Steven Hill expired in [ANSWER]
['Q179960', 'P20', {'concept': 'Q2983893'}]
SELECT DISTINCT ?w WHERE { resource:Q179960 property:P20 ?w . ?w rdf:type ontology:Q2983893 }
Manhattan
Steven Hill expired in Manhattan
Manhattan
action filter_type
action find
entity Steven Hill
relation place of death
type urban district
['Steven Hill', 'place of death', {'concept': 'urban district'}]
SELECT DISTINCT ?w WHERE { resource:Steven_Hill property:place_of_death ?w . ?w rdf:type ontology:urban_district }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5045990
Q2983893
USER
And how about Carr Van Anda?
(Q5045990,P20,c(Q2983893))
action filter_type
action find
entity Q5045990
relation P20
type Q2983893
['Q5045990', 'P20', {'concept': 'Q2983893'}]
SELECT DISTINCT ?n WHERE { resource:Q5045990 property:P20 ?n . ?n rdf:type ontology:Q2983893 }
Carr Van Anda
action filter_type
action find
entity Carr Van Anda
relation place of death
type urban district
['Carr Van Anda', 'place of death', {'concept': 'urban district'}]
SELECT DISTINCT ?n WHERE { resource:Carr_Van_Anda property:place_of_death ?n . ?n rdf:type ontology:urban_district }
[]
urban district
Q11299
SYSTEM
Manhattan
Q11299
(Q5045990,P20,c(Q2983893))
action filter_type
action find
entity Q5045990
relation P20
type Q2983893
[ANSWER]
['Q5045990', 'P20', {'concept': 'Q2983893'}]
SELECT DISTINCT ?n WHERE { resource:Q5045990 property:P20 ?n . ?n rdf:type ontology:Q2983893 }
Manhattan
Manhattan
action filter_type
action find
entity Carr Van Anda
relation place of death
type urban district
['Carr Van Anda', 'place of death', {'concept': 'urban district'}]
SELECT DISTINCT ?n WHERE { resource:Carr_Van_Anda property:place_of_death ?n . ?n rdf:type ontology:urban_district }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q11299 Q15058863
P17
Q15617994
USER
Is that urban district located in Wensley, Derbyshire ?
(Q11299,P17,Q15058863)
action is_in
entity Q15058863
action find
entity Q11299
relation P17
['Q11299', 'P17', 'Q15058863']
ASK WHERE { resource:Q11299 property:P17 resource:Q15058863 }
Manhattan Wensley, Derbyshire
action is_in
entity Wensley, Derbyshire
action find
entity Manhattan
relation country
['Manhattan', 'country', 'Wensley, Derbyshire']
ASK WHERE { resource:Manhattan property:country resource:Wensley,_Derbyshire }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q11299,P17,Q15058863)
action is_in
entity Q15058863
action find
entity Q11299
relation P17
[ANSWER]
['Q11299', 'P17', 'Q15058863']
ASK WHERE { resource:Q11299 property:P17 resource:Q15058863 }
No
action is_in
entity Wensley, Derbyshire
action find
entity Manhattan
relation country
['Manhattan', 'country', 'Wensley, Derbyshire']
ASK WHERE { resource:Manhattan property:country resource:Wensley,_Derbyshire }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q11299
P740
Q43229 Q2088357
USER
How many organizations or musical ensembles were formed at Manhattan ?
(c(Q43229),P740,Q11299) (c(Q2088357),P740,Q11299)
action count
action union
action filter_type
action find_reverse
entity Q11299
relation P740
type Q43229
action filter_type
action find_reverse
entity Q11299
relation P740
type Q2088357
[{'concept': 'Q43229'}, 'P740', 'Q11299'] [{'concept': 'Q2088357'}, 'P740', 'Q11299']
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { VALUES ( ?x ) { ( ontology:Q43229 ) ( ontology:Q2088357 ) } . ?v rdf:type ?x }
Manhattan
action count
action union
action filter_type
action find_reverse
entity Manhattan
relation location of formation
type organization
action filter_type
action find_reverse
entity Manhattan
relation location of formation
type musical ensemble
[{'concept': 'organization'}, 'location of formation', 'Manhattan'] [{'concept': 'musical ensemble'}, 'location of formation', 'Manhattan']
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { VALUES ( ?x ) { ( ontology:organization ) ( ontology:musical_ensemble ) } . ?v rdf:type ?x }
[]
organization musical ensemble
SYSTEM
15
Q2612153 Q3611907 Q5433482 Q319344 Q6546638 Q4358070 Q508154 Q17110204 Q20031399 Q2869434 Q7162362 Q2749082 Q2462124 Q5590161 Q156391
(c(Q43229),P740,Q11299) (c(Q2088357),P740,Q11299)
action count
action union
action filter_type
action find_reverse
entity Q11299
relation P740
type Q43229
action filter_type
action find_reverse
entity Q11299
relation P740
type Q2088357
[ANSWER]
[{'concept': 'Q43229'}, 'P740', 'Q11299'] [{'concept': 'Q2088357'}, 'P740', 'Q11299']
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { VALUES ( ?x ) { ( ontology:Q43229 ) ( ontology:Q2088357 ) } . ?v rdf:type ?x }
Cults All-American Publications Famous Smoke Shop Abercrombie & Fitch Lightyear Entertainment Timely Comics Valiant Comics Spiratone D'Angelico Guitars Atlas Comics (1950s) Pendaflex Lord & Taylor The Trump Organization Goya Foods Steinway & Sons
15
action count
action union
action filter_type
action find_reverse
entity Manhattan
relation location of formation
type organization
action filter_type
action find_reverse
entity Manhattan
relation location of formation
type musical ensemble
[{'concept': 'organization'}, 'location of formation', 'Manhattan'] [{'concept': 'musical ensemble'}, 'location of formation', 'Manhattan']
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { VALUES ( ?x ) { ( ontology:organization ) ( ontology:musical_ensemble ) } . ?v rdf:type ?x }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5065423 Q7491418
P27
Q15617994
USER
Which administrative territories do Shawn Michael Howard or Cesar Castellani belong to ?
OR((Q7491418,P27,c(Q15617994)), (Q5065423,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7491418
relation P27
action find
entity Q5065423
relation P27
type Q15617994
{'OR': [['Q7491418', 'P27', {'concept': 'Q15617994'}], ['Q5065423', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q7491418 property:P27 ?l } UNION { resource:Q5065423 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Cesar Castellani Shawn Michael Howard
action filter_type
action union
action find
entity Shawn Michael Howard
relation country of citizenship
action find
entity Cesar Castellani
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Shawn Michael Howard', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cesar Castellani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Shawn_Michael_Howard property:country_of_citizenship ?l } UNION { resource:Cesar_Castellani property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q233
SYSTEM
United States of America, Malta
Q30 Q233
OR((Q7491418,P27,c(Q15617994)), (Q5065423,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7491418
relation P27
action find
entity Q5065423
relation P27
type Q15617994
Shawn Michael Howard or Cesar Castellani belong to the [ANSWERS]
{'OR': [['Q7491418', 'P27', {'concept': 'Q15617994'}], ['Q5065423', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q7491418 property:P27 ?l } UNION { resource:Q5065423 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
United States of America Malta
Shawn Michael Howard or Cesar Castellani belong to the United States of America and Malta
United States of America Malta
action filter_type
action union
action find
entity Shawn Michael Howard
relation country of citizenship
action find
entity Cesar Castellani
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Shawn Michael Howard', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cesar Castellani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Shawn_Michael_Howard property:country_of_citizenship ?l } UNION { resource:Cesar_Castellani property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q18546505
P248
Q1209283 Q1752346 Q502895
USER
How many people have been stated in around the same number of electronic medias or assemblies as John Campbell ?
(c(Q502895),P248,c(Q1209283)|c(Q1752346))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q1209283
action find_tuple_counts
relation P248
type Q502895
type Q1752346
action count
action filter_multi_types
action find
entity Q18546505
relation P248
type Q1209283
type Q1752346
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1209283'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?l WHERE { { ?l rdf:type ontology:Q502895 . ?w rdf:type ontology:Q1209283 . ?l property:P248 ?w } UNION { ?l property:P248 ?w . ?l rdf:type ontology:Q502895 . ?w rdf:type ontology:Q1752346 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { { ?r rdf:type ontology:Q1209283 } UNION { ?r rdf:type ontology:Q1752346 } } . resource:Q18546505 property:P248 ?r } } . FILTER ( ?g = ?x ) }
John Campbell
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type electronic media
action find_tuple_counts
relation stated in
type common name
type assembly
action count
action filter_multi_types
action find
entity John Campbell
relation stated in
type electronic media
type assembly
[{'concept': 'common name'}, 'stated in', [{'concept': 'electronic media'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?l WHERE { { ?l rdf:type ontology:common_name . ?w rdf:type ontology:electronic_media . ?l property:stated_in ?w } UNION { ?l property:stated_in ?w . ?l rdf:type ontology:common_name . ?w rdf:type ontology:assembly } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { { ?r rdf:type ontology:electronic_media } UNION { ?r rdf:type ontology:assembly } } . resource:John_Campbell property:stated_in ?r } } . FILTER ( ?g = ?x ) }
[]
electronic media assembly common name
SYSTEM
345
Q16859599 Q6130307 Q6255166 Q5239877 Q5239876 Q5239879 Q16210814 Q16013737 Q7342716 Q7342713 Q5239896 Q5239895 Q2699786 Q18529684 Q6237327 Q6237320 Q6237321 Q6237323 Q6237329 Q5232852 Q16859511 Q16011002 Q17402519 Q6257923 Q6255435 Q6262994 Q6262996 Q6262991 Q15456236 Q6249889 Q6255181 Q6249883 Q15996304 Q18527481 Q16225368 Q861695 Q6262693 Q16730720 Q6236103 Q6242872 Q6260673 Q6260669 Q6260667 Q6236088 Q16062974 Q18546647 Q6236083 Q6236081 Q6221407 Q9069823 Q7351119 Q6145026 Q5606266 Q5606264 Q5606262 Q5606263 Q18546633 Q18546632 Q5606268 Q16857953 Q16849502 Q16244253 Q22936292 Q16026267 Q18530177 Q10978488 Q18810870 Q16195622 Q6249899 Q1879480 Q661947 Q6246971 Q16859464 Q18810862 Q18810864 Q16106932 Q16023331 Q8019371 Q18530179 Q18527610 Q5241202 Q6260355 Q18534216 Q18534214 Q6130319 Q6130313 Q6260650 Q6255174 Q6260652 Q6260655 Q6255172 Q6249879 Q6221412 Q16060029 Q7351128 Q7351124 Q7351121 Q7351123 Q16908903 Q16863901 Q21511610 Q3528952 Q6237337 Q1776423 Q6255426 Q6228766 Q5232850 Q5232857 Q18546651 Q5232859 Q18529777 Q7795179 Q6257938 Q1916387 Q8018837 Q18527125 Q3116279 Q8018834 Q6145023 Q6145020 Q11979017 Q18530176 Q18530175 Q18530173 Q18385557 Q6249895 Q18530178 Q16848723 Q18810866 Q16015315 Q8004402 Q8004400 Q5537303 Q18530282 Q15990337 Q11154564 Q16886405 Q18530281 Q18530280 Q3703350 Q18338285 Q6242867 Q6242862 Q704916 Q18531059 Q18527375 Q16850547 Q6236099 Q18338267 Q16031260 Q18531060 Q16066831 Q6255420 Q11919459 Q18527305 Q18603564 Q6262713 Q6239287 Q6130325 Q6130320 Q5606271 Q5606273 Q5606272 Q5606274 Q5606277 Q18546628 Q5144956 Q17626521 Q18546621 Q18559712 Q18559713 Q16071955 Q5239912 Q6221426 Q6221428 Q14950004 Q15994621 Q15994622 Q6221434 Q7493391 Q8020388 Q6239263 Q6237345 Q8020385 Q16062311 Q15461577 Q16031816 Q6255407 Q18527054 Q6257940 Q5239881 Q17308862 Q5239884 Q8019900 Q8019902 Q15995818 Q5240337 Q6228730 Q15990069 Q6265189 Q16090838 Q18534834 Q18534833 Q18534831 Q4786783 Q16065305 Q16228915 Q15637844 Q4679001 Q6237308 Q6237302 Q16194812 Q8017685 Q8017687 Q15485947 Q8017683 Q8017682 Q5241199 Q6241395 Q5241193 Q6263006 Q6263007 Q15452052 Q6255417 Q16105132 Q6262977 Q18593210 Q6246952 Q5537315 Q6246950 Q6246958 Q526328 Q5537319 Q18527381 Q18527209 Q16027113 Q16043626 Q18166520 Q18546505 Q18530220 Q18526878 Q5239909 Q18546619 Q18546617 Q16105467 Q6255177 Q5239906 Q5144957 Q6221432 Q6236101 Q5144950 Q5144959 Q6255170 Q3703375 Q5090064 Q1459540 Q16857323 Q7342708 Q5239885 Q5239886 Q5233458 Q15982602 Q5233453 Q5233457 Q8020399 Q6239258 Q8020394 Q8020396 Q8020390 Q6221424 Q21515457 Q17385895 Q16466630 Q16031827 Q6255286 Q5241196 Q6255179 Q6262733 Q6262982 Q6262980 Q6262984 Q18530275 Q18530276 Q18530278 Q18530279 Q15994581 Q6244744 Q6244748 Q6470045 Q2778111 Q18546659 Q18546658 Q16859187 Q18546653 Q18546650 Q18546656 Q18546655 Q5240358 Q26707638 Q5601513 Q16142930 Q6237318 Q17021417 Q6130341 Q5606257 Q4955213 Q5606258 Q16067356 Q15782600 Q18530180 Q18530181 Q16095641 Q6263011 Q10363011 Q6257915 Q6145009 Q6145005 Q6145007 Q6145001 Q5233462 Q5233466 Q5233469 Q333770 Q6251897 Q9311159 Q6242832 Q5537322 Q5537324 Q5537325 Q6246965 Q6246963 Q6246961 Q16066618 Q8020402 Q6262709 Q6262704 Q8019367 Q6242842 Q16225515 Q18527351 Q5241210 Q15990004 Q16065563 Q968659 Q18546195
(c(Q502895),P248,c(Q1209283)|c(Q1752346))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q1209283
action find_tuple_counts
relation P248
type Q502895
type Q1752346
action count
action filter_multi_types
action find
entity Q18546505
relation P248
type Q1209283
type Q1752346
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1209283'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?l WHERE { { ?l rdf:type ontology:Q502895 . ?w rdf:type ontology:Q1209283 . ?l property:P248 ?w } UNION { ?l property:P248 ?w . ?l rdf:type ontology:Q502895 . ?w rdf:type ontology:Q1752346 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { { ?r rdf:type ontology:Q1209283 } UNION { ?r rdf:type ontology:Q1752346 } } . resource:Q18546505 property:P248 ?r } } . FILTER ( ?g = ?x ) }
William Thompson James Brown John Roberts David Smith David Smith David Smith David Evans John Roberts Robert Campbell Robert Campbell David Smith David Smith Colin Campbell David Davies John Hall John Hall John Hall John Hall John Hall David Davies John Robinson John Parker Greg Smith John Simpson John Rogers John Ward John Ward John Ward William Williams John Murphy John Roberts John Murphy John Martin Robert Williams John Rogers William Robinson John Walker John Kennedy John Gray John Kennedy John Thompson John Thompson John Thompson John Gray James Walker John Williams John Gray John Gray John Bell Robert Williams Robert Williams James Walker Greg Smith Greg Smith Greg Smith Greg Smith John Smith John Smith Greg Smith John Martin David Wilson John Martin Gilles De Haes John Rogers John Brown John Jackson John Robinson John Kennedy John Murphy Léonard Limousin John Davies John Martin John Parker John Robinson John Robinson David Evans William Walker William Thompson John Brown John Smith David Wilson John Taylor John Ward John Taylor James Brown James Brown John Thompson John Roberts John Thompson John Thompson John Roberts John Murphy John Bell David Davies Robert Williams Robert Williams Robert Williams Robert Williams William Walker David Davies Dunja Lango George Brown John Hall Raud the Strong John Rogers John Davies David Davies David Davies John Williams David Davies James Brown Thomas Williams John Simpson David Smith William Stewart John Jones Greg Smith William Stewart James Walker James Walker John Martin John Brown John Brown John Brown John Walker John Murphy John Brown John Walker John Robinson David Thomas William Anderson William Anderson George Brown John Randall Clarke James Walker David Evans John Walker John Clarke John Clarke David Thomas Borja Mendia John Kennedy John Kennedy Li Ruihuan William Brown John Murray John Martin John Gray Ethan Wragge John Murphy William Brown James Walker John Rogers Epimenides John Martin William Thompson John Walker John Hill James Brown James Brown Greg Smith Greg Smith Greg Smith Greg Smith Greg Smith John Smith Colin Campbell Colin Campbell John Roland Phillips David Christopher Davies David Lewis Davies John Murphy David Smith John Bell John Bell John Hill John Martin John Martin John Bell Shelby Harris William Williams John Hill John Hall William Williams John Martin John Martin William Walker John Rogers John Hill John Simpson David Smith Colin Campbell David Smith William Walker William Walker John Thompson David Thomas John Davies John Jackson John Young John Kennedy John Davis John Davis John Davis John Bell George Brown John Wilson David Smith Adam Dunkels John Hall John Hall David Smith William Robinson William Robinson John Walker William Robinson William Robinson David Wilson John Jackson David Wilson John Ward John Ward John Rogers John Rogers John Kennedy John Ward John Davies John Martin George Brown John Martin John Martin Dairis Bertāns George Brown John Murray John Lewis John Roberts William Thompson William Thompson John Campbell John Campbell John Evans David Smith John Phillips John Phillips John Rogers John Roberts David Smith Colin Campbell John Bell John Gray Colin Campbell Colin Campbell John Roberts David Wilson George Brown John Thompson John Evans Robert Campbell David Smith David Smith David Evans John Young David Evans David Evans William Williams John Hill William Williams William Williams William Williams John Bell Rolando Valdès-Blain David Evans John Bell John Rogers John Robinson David Wilson John Roberts John Walker John Ward John Ward John Ward John Clarke John Clarke John Clarke John Clarke John Lewis John Lewis John Lewis Lady Colin Campbell Greg Smith John Williams John Williams James Walker John Williams John Williams John Williams John Williams David Thomas Delobel Colin Campbell John Murphy John Hall John Walker James Brown Greg Smith Brady Sallee Greg Smith John Walker John Hill John Brown John Wright Brown John Hall John Ward Risques Pereira John Simpson James Walker James Walker James Walker James Walker David Evans David Evans David Evans Victorinus John Parker Robert Williams John Kennedy George Brown George Brown George Brown John Martin John Martin John Martin John Ward William Williams John Walker John Walker William Thompson John Kennedy John Simpson John Moore David Wilson John Gray William Thompson Carsten Tank George Smith
345
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type electronic media
action find_tuple_counts
relation stated in
type common name
type assembly
action count
action filter_multi_types
action find
entity John Campbell
relation stated in
type electronic media
type assembly
[{'concept': 'common name'}, 'stated in', [{'concept': 'electronic media'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?l WHERE { { ?l rdf:type ontology:common_name . ?w rdf:type ontology:electronic_media . ?l property:stated_in ?w } UNION { ?l property:stated_in ?w . ?l rdf:type ontology:common_name . ?w rdf:type ontology:assembly } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { { ?r rdf:type ontology:electronic_media } UNION { ?r rdf:type ontology:assembly } } . resource:John_Campbell property:stated_in ?r } } . FILTER ( ?g = ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q6258326
P248
Q1209283 Q1752346 Q502895
USER
And how about John Smith?
(c(Q502895),P248,c(Q1209283)|c(Q1752346))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q1209283
action find_tuple_counts
relation P248
type Q502895
type Q1752346
action count
action filter_multi_types
action find
entity Q6258326
relation P248
type Q1209283
type Q1752346
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1209283'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?t WHERE { VALUES ( ?j ) { ( ontology:Q1209283 ) ( ontology:Q1752346 ) } . ?k rdf:type ?j } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { resource:Q6258326 property:P248 ?w . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1209283 ) ( ontology:Q1752346 ) } } } } . FILTER ( ?n = ?g ) }
John Smith
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type electronic media
action find_tuple_counts
relation stated in
type common name
type assembly
action count
action filter_multi_types
action find
entity John Smith
relation stated in
type electronic media
type assembly
[{'concept': 'common name'}, 'stated in', [{'concept': 'electronic media'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?t WHERE { VALUES ( ?j ) { ( ontology:electronic_media ) ( ontology:assembly ) } . ?k rdf:type ?j } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { resource:John_Smith property:stated_in ?w . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:electronic_media ) ( ontology:assembly ) } } } } . FILTER ( ?n = ?g ) }
[]
electronic media assembly common name
SYSTEM
40
Q6255164 Q5144961 Q8017696 Q6255184 Q6244753 Q6236108 Q5240345 Q16065533 Q1626914 Q6258326 Q11035229 Q8019373 Q6260653 Q6249871 Q6249873 Q6228764 Q6246935 Q5232854 Q15999511 Q5537308 Q6239285 Q16059754 Q5606270 Q6221420 Q17423413 Q8020387 Q16859222 Q4096102 Q5241194 Q6262978 Q5537317 Q6242859 Q6242044 Q5239888 Q14951093 Q16857661 Q1101329 Q17364116 Q8019368 Q6262700
(c(Q502895),P248,c(Q1209283)|c(Q1752346))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q1209283
action find_tuple_counts
relation P248
type Q502895
type Q1752346
action count
action filter_multi_types
action find
entity Q6258326
relation P248
type Q1209283
type Q1752346
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1209283'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?t WHERE { VALUES ( ?j ) { ( ontology:Q1209283 ) ( ontology:Q1752346 ) } . ?k rdf:type ?j } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { resource:Q6258326 property:P248 ?w . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1209283 ) ( ontology:Q1752346 ) } } } } . FILTER ( ?n = ?g ) }
John Roberts Colin Campbell William Robinson John Roberts John Lewis John Gray David Thomas John Gray Greg Smith John Smith John Carter William Thompson John Thompson John Murphy John Murphy John Davies John Martin David Davies William Robinson George Brown John Hill James Brown Greg Smith John Bell James Brown William Williams Robert Williams James Brown David Wilson John Ward George Brown John Kennedy John Jones David Smith John Jackson John Hall John Rogers John Davies William Thompson John Walker
40
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type electronic media
action find_tuple_counts
relation stated in
type common name
type assembly
action count
action filter_multi_types
action find
entity John Smith
relation stated in
type electronic media
type assembly
[{'concept': 'common name'}, 'stated in', [{'concept': 'electronic media'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?t WHERE { VALUES ( ?j ) { ( ontology:electronic_media ) ( ontology:assembly ) } . ?k rdf:type ?j } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { resource:John_Smith property:stated_in ?w . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:electronic_media ) ( ontology:assembly ) } } } } . FILTER ( ?n = ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11299
P840
Q838948
USER
Which works of art have their narrative set in Manhattan ?
(c(Q838948),P840,Q11299)
action filter_type
action find_reverse
entity Q11299
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q11299']
SELECT DISTINCT ?w WHERE { ?w property:P840 resource:Q11299 . ?w rdf:type ontology:Q838948 }
Manhattan
action filter_type
action find_reverse
entity Manhattan
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Manhattan']
SELECT DISTINCT ?w WHERE { ?w property:narrative_location resource:Manhattan . ?w rdf:type ontology:work_of_art }
[]
work of art
Q233464 Q2345 Q221113
SYSTEM
Annie Hall, 12 Angry Men, A.I. Artificial Intelligence
Q14272676 Q15039878 Q1354121 Q18155444 Q40071 Q2546364 Q237134 Q5228225 Q3560403 Q7044765 Q2345 Q4960267 Q3991647 Q181555 Q9019576 Q4354277 Q1656234 Q1330582 Q2681286 Q135156 Q1731060 Q2356167 Q845057 Q2071501 Q233464 Q1062846 Q1214915 Q7177873 Q909445 Q221113 Q1190492 Q731310 Q3559142 Q1394424
(c(Q838948),P840,Q11299)
action filter_type
action find_reverse
entity Q11299
relation P840
type Q838948
[ANSWERS] have their narrative set in Manhattan
[{'concept': 'Q838948'}, 'P840', 'Q11299']
SELECT DISTINCT ?w WHERE { ?w property:P840 resource:Q11299 . ?w rdf:type ontology:Q838948 }
The Other Woman Rob the Mob Melinda and Melinda The Night Before 200 Cigarettes Ash Wednesday The Lost Weekend The Cats of Mirikitani Park Row No Picnic 12 Angry Men Breeders Tiny Furniture Crimes and Misdemeanors La Soga Life Is Hot in Cracktown Paternity Keeping the Faith War of the Worlds: Goliath The Heat Bell, Book and Candle Strictly Business Hannah and Her Sisters Permanent Vacation Annie Hall Chapter 27 The Muppets Take Manhattan Peter and Vandy Shame A.I. Artificial Intelligence P2 Manhattan East Side, West Side Fall
Annie Hall, 12 Angry Men and A.I. Artificial Intelligence have their narrative set in Manhattan
Annie Hall 12 Angry Men A.I. Artificial Intelligence
action filter_type
action find_reverse
entity Manhattan
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Manhattan']
SELECT DISTINCT ?w WHERE { ?w property:narrative_location resource:Manhattan . ?w rdf:type ontology:work_of_art }
[]