Simple Question (Direct)
Simple Question
Q15260942
P21
Q290
USER
Which sex does Hugh Chamberlen possess ?
(Q15260942,P21,c(Q290))
action filter_type
action find
entity Q15260942
relation P21
type Q290
['Q15260942', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q15260942 property:P21 ?m . ?m rdf:type ontology:Q290 }
Hugh Chamberlen
action filter_type
action find
entity Hugh Chamberlen
relation gender
type sex
['Hugh Chamberlen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Hugh_Chamberlen property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15260942,P21,c(Q290))
action filter_type
action find
entity Q15260942
relation P21
type Q290
Hugh Chamberlen possesses un [ANSWER]
['Q15260942', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q15260942 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
Hugh Chamberlen possesses un male
male
action filter_type
action find
entity Hugh Chamberlen
relation gender
type sex
['Hugh Chamberlen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Hugh_Chamberlen property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15260942
P22
Q502895
USER
Which male person was the parent of Hugh Chamberlen ?
(Q15260942,P22,c(Q502895))
action filter_type
action find
entity Q15260942
relation P22
type Q502895
['Q15260942', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q15260942 property:P22 ?t . ?t rdf:type ontology:Q502895 }
Hugh Chamberlen
action filter_type
action find
entity Hugh Chamberlen
relation father
type common name
['Hugh Chamberlen', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Hugh_Chamberlen property:father ?t . ?t rdf:type ontology:common_name }
[]
common name
Q18530598
SYSTEM
Peter Chamberlen
Q18530598
(Q15260942,P22,c(Q502895))
action filter_type
action find
entity Q15260942
relation P22
type Q502895
[ANSWER] was the parent of Hugh Chamberlen
['Q15260942', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q15260942 property:P22 ?t . ?t rdf:type ontology:Q502895 }
Peter Chamberlen
Peter Chamberlen was the parent of Hugh Chamberlen
Peter Chamberlen
action filter_type
action find
entity Hugh Chamberlen
relation father
type common name
['Hugh Chamberlen', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Hugh_Chamberlen property:father ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q562874
Q502895
USER
And what about Budd Schulberg?
(Q562874,P22,c(Q502895))
action filter_type
action find
entity Q562874
relation P22
type Q502895
['Q562874', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q562874 property:P22 ?i . ?i rdf:type ontology:Q502895 }
Budd Schulberg
action filter_type
action find
entity Budd Schulberg
relation father
type common name
['Budd Schulberg', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Budd_Schulberg property:father ?i . ?i rdf:type ontology:common_name }
[]
common name
Q285357
SYSTEM
B. P. Schulberg
Q285357
(Q562874,P22,c(Q502895))
action filter_type
action find
entity Q562874
relation P22
type Q502895
[ANSWER]
['Q562874', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q562874 property:P22 ?i . ?i rdf:type ontology:Q502895 }
B. P. Schulberg
B. P. Schulberg
action filter_type
action find
entity Budd Schulberg
relation father
type common name
['Budd Schulberg', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Budd_Schulberg property:father ?i . ?i rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q285357 Q3156701
P162
Q838948
USER
Has Bedtime Story been developed by that person ?
(Q3156701,P162,Q285357)
action is_in
entity Q285357
action find
entity Q3156701
relation P162
['Q3156701', 'P162', 'Q285357']
ASK WHERE { resource:Q3156701 property:P162 resource:Q285357 }
B. P. Schulberg Bedtime Story
action is_in
entity B. P. Schulberg
action find
entity Bedtime Story
relation producer
['Bedtime Story', 'producer', 'B. P. Schulberg']
ASK WHERE { resource:Bedtime_Story property:producer resource:B._P._Schulberg }
[]
work of art
SYSTEM
YES
(Q3156701,P162,Q285357)
action is_in
entity Q285357
action find
entity Q3156701
relation P162
[ANSWER]
['Q3156701', 'P162', 'Q285357']
ASK WHERE { resource:Q3156701 property:P162 resource:Q285357 }
Yes
action is_in
entity B. P. Schulberg
action find
entity Bedtime Story
relation producer
['Bedtime Story', 'producer', 'B. P. Schulberg']
ASK WHERE { resource:Bedtime_Story property:producer resource:B._P._Schulberg }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q285357
P58
Q201658
USER
Which film genres are that person a screwriter of ?
action filter_type
action find_reverse
entity Q285357
relation P58
type Q201658
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q201658 . ?b property:P58 resource:Q285357 }
B. P. Schulberg
action filter_type
action find_reverse
entity B. P. Schulberg
relation screenwriter
type film genre
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:film_genre . ?b property:screenwriter resource:B._P._Schulberg }
[]
film genre
Q3149711 Q1752682
SYSTEM
In the Bishop's Carriage, Tess of the Storm Country
Q3149711 Q1752682
action filter_type
action find_reverse
entity Q285357
relation P58
type Q201658
[ANSWERS] are that person a screwriter of
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q201658 . ?b property:P58 resource:Q285357 }
In the Bishop's Carriage Tess of the Storm Country
In the Bishop's Carriage and Tess of the Storm Country are that person a screwriter of
In the Bishop's Carriage Tess of the Storm Country
action filter_type
action find_reverse
entity B. P. Schulberg
relation screenwriter
type film genre
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:film_genre . ?b property:screenwriter resource:B._P._Schulberg }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q21686005 Q285357
P162 P364
Q201658
USER
Which film genres have been developed by B. P. Schulberg and were originally created in n/a (silent film) language ?
AND((c(Q201658),P162,Q285357), (c(Q201658),P364,Q21686005))
action filter_type
action intersection
action find_reverse
entity Q285357
relation P162
action find_reverse
entity Q21686005
relation P364
type Q201658
{'AND': [[{'concept': 'Q201658'}, 'P162', 'Q285357'], [{'concept': 'Q201658'}, 'P364', 'Q21686005']]}
SELECT DISTINCT ?j WHERE { ?j property:P162 resource:Q285357 . ?j property:P364 resource:Q21686005 . ?j rdf:type ontology:Q201658 }
n/a (silent film) B. P. Schulberg
action filter_type
action intersection
action find_reverse
entity B. P. Schulberg
relation producer
action find_reverse
entity n/a (silent film)
relation original language of work
type film genre
{'AND': [[{'concept': 'film genre'}, 'producer', 'B. P. Schulberg'], [{'concept': 'film genre'}, 'original language of work', 'n/a (silent film)']]}
SELECT DISTINCT ?j WHERE { ?j property:producer resource:B._P._Schulberg . ?j property:original_language_of_work resource:n/a_(silent_film) . ?j rdf:type ontology:film_genre }
[]
film genre
Q3824888 Q1547717 Q3940339 Q6945790 Q7736543 Q7746424 Q5416595 Q6798032 Q7756092 Q3927648
SYSTEM
Some of them are Street of Sin, The Plastic Age, Rolled Stockings, My Lady's Lips, The Girl Who Wouldn't Work, The Lawful Cheater, Evening Clothes, Maytime, The Parasite, Red Hair
Q7756092 Q7450905 Q4213036 Q3927648 Q272036 Q7574513 Q7736543 Q4782076 Q1969037 Q3221813 Q7746424 Q4667615 Q1547717 Q4421558 Q6945790 Q5500334 Q4019540 Q3824888 Q6798032 Q3940339 Q5416595
AND((c(Q201658),P162,Q285357), (c(Q201658),P364,Q21686005))
action filter_type
action intersection
action find_reverse
entity Q285357
relation P162
action find_reverse
entity Q21686005
relation P364
type Q201658
[ANSWERS] have been developed by B. P. Schulberg and were originally created in n/a (silent film) language
{'AND': [[{'concept': 'Q201658'}, 'P162', 'Q285357'], [{'concept': 'Q201658'}, 'P364', 'Q21686005']]}
SELECT DISTINCT ?j WHERE { ?j property:P162 resource:Q285357 . ?j property:P364 resource:Q21686005 . ?j rdf:type ontology:Q201658 }
The Parasite Senorita Mantrap Red Hair Wings Special Delivery The Girl Who Wouldn't Work April Showers Hula The Eagle of the Sea The Lawful Cheater Abie's Irish Rose The Plastic Age Rough House Rosie My Lady's Lips Free to Love White Man Street of Sin Maytime Rolled Stockings Evening Clothes
Street of Sin, The Plastic Age, Rolled Stockings, My Lady's Lips, The Girl Who Wouldn't Work, The Lawful Cheater, Evening Clothes, Maytime, The Parasite and Red Hair have been developed by B. P. Schulberg and were originally created in n/a (silent film) language
Street of Sin The Plastic Age Rolled Stockings My Lady's Lips The Girl Who Wouldn't Work The Lawful Cheater Evening Clothes Maytime The Parasite Red Hair
action filter_type
action intersection
action find_reverse
entity B. P. Schulberg
relation producer
action find_reverse
entity n/a (silent film)
relation original language of work
type film genre
{'AND': [[{'concept': 'film genre'}, 'producer', 'B. P. Schulberg'], [{'concept': 'film genre'}, 'original language of work', 'n/a (silent film)']]}
SELECT DISTINCT ?j WHERE { ?j property:producer resource:B._P._Schulberg . ?j property:original_language_of_work resource:n/a_(silent_film) . ?j rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q285357
P26
Q502895
USER
Which person is the life partner of B. P. Schulberg ?
(Q285357,P26,c(Q502895))
action filter_type
action find
entity Q285357
relation P26
type Q502895
['Q285357', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q285357 property:P26 ?v }
B. P. Schulberg
action filter_type
action find
entity B. P. Schulberg
relation spouse
type common name
['B. P. Schulberg', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:B._P._Schulberg property:spouse ?v }
[]
common name
Q22582765
SYSTEM
Adeline Jaffe
Q22582765
(Q285357,P26,c(Q502895))
action filter_type
action find
entity Q285357
relation P26
type Q502895
[ANSWER] is the life partner of B. P. Schulberg
['Q285357', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q285357 property:P26 ?v }
Adeline Jaffe
Adeline Jaffe is the life partner of B. P. Schulberg
Adeline Jaffe
action filter_type
action find
entity B. P. Schulberg
relation spouse
type common name
['B. P. Schulberg', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:B._P._Schulberg property:spouse ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q22582765
P40
Q502895
USER
Which people are children of that one ?
(Q22582765,P40,c(Q502895))
action filter_type
action find
entity Q22582765
relation P40
type Q502895
['Q22582765', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q22582765 property:P40 ?b . ?b rdf:type ontology:Q502895 }
Adeline Jaffe
action filter_type
action find
entity Adeline Jaffe
relation child
type common name
['Adeline Jaffe', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Adeline_Jaffe property:child ?b . ?b rdf:type ontology:common_name }
[]
common name
Q562874 Q22582759 Q2357954
SYSTEM
Budd Schulberg, Sonya Schulberg O'Sullivan, Stuart Schulberg
Q562874 Q22582759 Q2357954
(Q22582765,P40,c(Q502895))
action filter_type
action find
entity Q22582765
relation P40
type Q502895
[ANSWERS] are children of that one
['Q22582765', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q22582765 property:P40 ?b . ?b rdf:type ontology:Q502895 }
Budd Schulberg Sonya Schulberg O'Sullivan Stuart Schulberg
Budd Schulberg, Sonya Schulberg O'Sullivan and Stuart Schulberg are children of that one
Budd Schulberg Sonya Schulberg O'Sullivan Stuart Schulberg
action filter_type
action find
entity Adeline Jaffe
relation child
type common name
['Adeline Jaffe', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Adeline_Jaffe property:child ?b . ?b rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6835595 Q1547717
P19 P495
Q15617994
USER
Which administrative territories did The Plastic Age originate or are the places of birth of Michaela Eßl ?
OR((Q1547717,P495,c(Q15617994)), (Q6835595,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1547717
relation P495
action find
entity Q6835595
relation P19
type Q15617994
{'OR': [['Q1547717', 'P495', {'concept': 'Q15617994'}], ['Q6835595', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1547717 property:P495 ?p } UNION { resource:Q6835595 property:P19 ?p } } . ?p rdf:type ontology:Q15617994 }
Michaela Eßl The Plastic Age
action filter_type
action union
action find
entity The Plastic Age
relation country of origin
action find
entity Michaela Eßl
relation place of birth
type designation for an administrative territorial entity
{'OR': [['The Plastic Age', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Michaela Eßl', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:The_Plastic_Age property:country_of_origin ?p } UNION { resource:Michaela_Eßl property:place_of_birth ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q334510 Q30
SYSTEM
Abtenau, United States of America
Q334510 Q30
OR((Q1547717,P495,c(Q15617994)), (Q6835595,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1547717
relation P495
action find
entity Q6835595
relation P19
type Q15617994
[ANSWERS]
{'OR': [['Q1547717', 'P495', {'concept': 'Q15617994'}], ['Q6835595', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1547717 property:P495 ?p } UNION { resource:Q6835595 property:P19 ?p } } . ?p rdf:type ontology:Q15617994 }
Abtenau United States of America
Abtenau United States of America
action filter_type
action union
action find
entity The Plastic Age
relation country of origin
action find
entity Michaela Eßl
relation place of birth
type designation for an administrative territorial entity
{'OR': [['The Plastic Age', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Michaela Eßl', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:The_Plastic_Age property:country_of_origin ?p } UNION { resource:Michaela_Eßl property:place_of_birth ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19658093 Q3149711
P495 P17
Q15617994
USER
Which administrative territories did In the Bishop's Carriage originate or are Willem-Alexanderstraat present in ?
OR((Q3149711,P495,c(Q15617994)), (Q19658093,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3149711
relation P495
action find
entity Q19658093
relation P17
type Q15617994
{'OR': [['Q3149711', 'P495', {'concept': 'Q15617994'}], ['Q19658093', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q3149711 property:P495 ?r } UNION { resource:Q19658093 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Willem-Alexanderstraat In the Bishop's Carriage
action filter_type
action union
action find
entity In the Bishop's Carriage
relation country of origin
action find
entity Willem-Alexanderstraat
relation country
type designation for an administrative territorial entity
{'OR': [["In the Bishop's Carriage", 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Willem-Alexanderstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:In_the_Bishop's_Carriage property:country_of_origin ?r } UNION { resource:Willem-Alexanderstraat property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q55
SYSTEM
United States of America, Netherlands
Q30 Q55
OR((Q3149711,P495,c(Q15617994)), (Q19658093,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3149711
relation P495
action find
entity Q19658093
relation P17
type Q15617994
In the Bishop's Carriage originated or are Willem-Alexanderstraat present in the [ANSWERS]
{'OR': [['Q3149711', 'P495', {'concept': 'Q15617994'}], ['Q19658093', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q3149711 property:P495 ?r } UNION { resource:Q19658093 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
United States of America Netherlands
In the Bishop's Carriage originated or are Willem-Alexanderstraat present in the United States of America and Netherlands
United States of America Netherlands
action filter_type
action union
action find
entity In the Bishop's Carriage
relation country of origin
action find
entity Willem-Alexanderstraat
relation country
type designation for an administrative territorial entity
{'OR': [["In the Bishop's Carriage", 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Willem-Alexanderstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:In_the_Bishop's_Carriage property:country_of_origin ?r } UNION { resource:Willem-Alexanderstraat property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P159
Q7210356 Q79913
USER
How many political organizations and non-governmental organizations have their head office location at that administrative territory ?
(c(Q7210356),P159,Q30) (c(Q79913),P159,Q30) (c(Q7210356),P159,Q30) (c(Q79913),P159,Q30) (c(Q7210356),P159,Q55) (c(Q79913),P159,Q55)
[{'concept': 'Q7210356'}, 'P159', 'Q30'] [{'concept': 'Q79913'}, 'P159', 'Q30'] [{'concept': 'Q7210356'}, 'P159', 'Q30'] [{'concept': 'Q79913'}, 'P159', 'Q30'] [{'concept': 'Q7210356'}, 'P159', 'Q55'] [{'concept': 'Q79913'}, 'P159', 'Q55']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q30 } UNION { ?y property:P159 resource:Q30 } UNION { ?z property:P159 resource:Q30 } UNION { ?y property:P159 resource:Q30 } UNION { ?z property:P159 resource:Q22442862 } UNION { ?y property:P159 resource:Q22442862 } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q79913 }
[{'concept': 'political organization'}, 'headquarters location', 'United States of America'] [{'concept': 'non-governmental organization'}, 'headquarters location', 'United States of America'] [{'concept': 'political organization'}, 'headquarters location', 'United States of America'] [{'concept': 'non-governmental organization'}, 'headquarters location', 'United States of America'] [{'concept': 'political organization'}, 'headquarters location', 'Netherlands'] [{'concept': 'non-governmental organization'}, 'headquarters location', 'Netherlands']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:United_States_of_America } UNION { ?y property:headquarters_location resource:United_States_of_America } UNION { ?z property:headquarters_location resource:United_States_of_America } UNION { ?y property:headquarters_location resource:United_States_of_America } UNION { ?z property:headquarters_location resource:Netherlands } UNION { ?y property:headquarters_location resource:Netherlands } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:non-governmental_organization }
[]
political organization non-governmental organization
Quantitative|Count|Mult. entity type|Clarification
Q30
SYSTEM
Did you mean United States of America ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q30 } UNION { ?y property:P159 resource:Q30 } UNION { ?z property:P159 resource:Q30 } UNION { ?y property:P159 resource:Q30 } UNION { ?z property:P159 resource:Q22442862 } UNION { ?y property:P159 resource:Q22442862 } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q79913 }
Did you mean United States of America ?
United States of America
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:United_States_of_America } UNION { ?y property:headquarters_location resource:United_States_of_America } UNION { ?z property:headquarters_location resource:United_States_of_America } UNION { ?y property:headquarters_location resource:United_States_of_America } UNION { ?z property:headquarters_location resource:Netherlands } UNION { ?y property:headquarters_location resource:Netherlands } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:non-governmental_organization }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q7210356),P159,Q30) (c(Q79913),P159,Q30) (c(Q7210356),P159,Q30) (c(Q79913),P159,Q30) (c(Q7210356),P159,Q55) (c(Q79913),P159,Q55)
[{'concept': 'Q7210356'}, 'P159', 'Q30'] [{'concept': 'Q79913'}, 'P159', 'Q30'] [{'concept': 'Q7210356'}, 'P159', 'Q30'] [{'concept': 'Q79913'}, 'P159', 'Q30'] [{'concept': 'Q7210356'}, 'P159', 'Q55'] [{'concept': 'Q79913'}, 'P159', 'Q55']
[{'concept': 'political organization'}, 'headquarters location', 'United States of America'] [{'concept': 'non-governmental organization'}, 'headquarters location', 'United States of America'] [{'concept': 'political organization'}, 'headquarters location', 'United States of America'] [{'concept': 'non-governmental organization'}, 'headquarters location', 'United States of America'] [{'concept': 'political organization'}, 'headquarters location', 'Netherlands'] [{'concept': 'non-governmental organization'}, 'headquarters location', 'Netherlands']
[]
SYSTEM
2 political organizations and 1 non-governmental organizations
Q3561700 Q4732399 Q1893430
(c(Q7210356),P159,Q30) (c(Q79913),P159,Q30) (c(Q7210356),P159,Q30) (c(Q79913),P159,Q30) (c(Q7210356),P159,Q55) (c(Q79913),P159,Q55)
[ANSWER]
[{'concept': 'Q7210356'}, 'P159', 'Q30'] [{'concept': 'Q79913'}, 'P159', 'Q30'] [{'concept': 'Q7210356'}, 'P159', 'Q30'] [{'concept': 'Q79913'}, 'P159', 'Q30'] [{'concept': 'Q7210356'}, 'P159', 'Q55'] [{'concept': 'Q79913'}, 'P159', 'Q55']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q30 } UNION { ?y property:P159 resource:Q30 } UNION { ?z property:P159 resource:Q30 } UNION { ?y property:P159 resource:Q30 } UNION { ?z property:P159 resource:Q22442862 } UNION { ?y property:P159 resource:Q22442862 } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q79913 }
Viet Tan Alliance for School Choice Reform Party of the United States of America
2 political organizations and 1 non-governmental organizations
[{'concept': 'political organization'}, 'headquarters location', 'United States of America'] [{'concept': 'non-governmental organization'}, 'headquarters location', 'United States of America'] [{'concept': 'political organization'}, 'headquarters location', 'United States of America'] [{'concept': 'non-governmental organization'}, 'headquarters location', 'United States of America'] [{'concept': 'political organization'}, 'headquarters location', 'Netherlands'] [{'concept': 'non-governmental organization'}, 'headquarters location', 'Netherlands']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:United_States_of_America } UNION { ?y property:headquarters_location resource:United_States_of_America } UNION { ?z property:headquarters_location resource:United_States_of_America } UNION { ?y property:headquarters_location resource:United_States_of_America } UNION { ?z property:headquarters_location resource:Netherlands } UNION { ?y property:headquarters_location resource:Netherlands } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:non-governmental_organization }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q21686005 Q285357
P162 P364
Q201658
USER
Which film genres have been developed by B. P. Schulberg and were originally created in n/a (silent film) language ?
AND((c(Q201658),P162,Q285357), (c(Q201658),P364,Q21686005))
action filter_type
action intersection
action find_reverse
entity Q285357
relation P162
action find_reverse
entity Q21686005
relation P364
type Q201658
{'AND': [[{'concept': 'Q201658'}, 'P162', 'Q285357'], [{'concept': 'Q201658'}, 'P364', 'Q21686005']]}
SELECT DISTINCT ?g WHERE { ?g property:P364 resource:Q21686005 . ?g property:P162 resource:Q285357 . ?g rdf:type ontology:Q201658 }
n/a (silent film) B. P. Schulberg
action filter_type
action intersection
action find_reverse
entity B. P. Schulberg
relation producer
action find_reverse
entity n/a (silent film)
relation original language of work
type film genre
{'AND': [[{'concept': 'film genre'}, 'producer', 'B. P. Schulberg'], [{'concept': 'film genre'}, 'original language of work', 'n/a (silent film)']]}
SELECT DISTINCT ?g WHERE { ?g property:original_language_of_work resource:n/a_(silent_film) . ?g property:producer resource:B._P._Schulberg . ?g rdf:type ontology:film_genre }
[]
film genre
Q3927648 Q3221813 Q4019540 Q7746424 Q1547717 Q4782076 Q3824888 Q7450905 Q7574513 Q5500334
SYSTEM
Some of them are Red Hair, The Eagle of the Sea, White Man, The Lawful Cheater, The Plastic Age, April Showers, Street of Sin, Senorita, Special Delivery, Free to Love
Q7756092 Q7450905 Q4213036 Q3927648 Q272036 Q7574513 Q7736543 Q4782076 Q1969037 Q3221813 Q7746424 Q4667615 Q1547717 Q4421558 Q6945790 Q5500334 Q4019540 Q3824888 Q6798032 Q3940339 Q5416595
AND((c(Q201658),P162,Q285357), (c(Q201658),P364,Q21686005))
action filter_type
action intersection
action find_reverse
entity Q285357
relation P162
action find_reverse
entity Q21686005
relation P364
type Q201658
[ANSWERS] have been developed by B. P. Schulberg and were originally created in n/a (silent film) language
{'AND': [[{'concept': 'Q201658'}, 'P162', 'Q285357'], [{'concept': 'Q201658'}, 'P364', 'Q21686005']]}
SELECT DISTINCT ?g WHERE { ?g property:P364 resource:Q21686005 . ?g property:P162 resource:Q285357 . ?g rdf:type ontology:Q201658 }
The Parasite Senorita Mantrap Red Hair Wings Special Delivery The Girl Who Wouldn't Work April Showers Hula The Eagle of the Sea The Lawful Cheater Abie's Irish Rose The Plastic Age Rough House Rosie My Lady's Lips Free to Love White Man Street of Sin Maytime Rolled Stockings Evening Clothes
Red Hair, The Eagle of the Sea, White Man, The Lawful Cheater, The Plastic Age, April Showers, Street of Sin, Senorita, Special Delivery and Free to Love have been developed by B. P. Schulberg and were originally created in n/a (silent film) language
Red Hair The Eagle of the Sea White Man The Lawful Cheater The Plastic Age April Showers Street of Sin Senorita Special Delivery Free to Love
action filter_type
action intersection
action find_reverse
entity B. P. Schulberg
relation producer
action find_reverse
entity n/a (silent film)
relation original language of work
type film genre
{'AND': [[{'concept': 'film genre'}, 'producer', 'B. P. Schulberg'], [{'concept': 'film genre'}, 'original language of work', 'n/a (silent film)']]}
SELECT DISTINCT ?g WHERE { ?g property:original_language_of_work resource:n/a_(silent_film) . ?g property:producer resource:B._P._Schulberg . ?g rdf:type ontology:film_genre }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5500334
P57
Q502895
USER
Which person directed that film genre ?
(Q5500334,P57,c(Q502895))
action filter_type
action find
entity Q5500334
relation P57
type Q502895
['Q5500334', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q5500334 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Free to Love
action filter_type
action find
entity Free to Love
relation director
type common name
['Free to Love', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Free_to_Love property:director ?j . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q5500334
SYSTEM
Did you mean Free to Love ?
Q3927648 Q3221813 Q4019540 Q7746424 Q1547717 Q4782076 Q3824888 Q7450905 Q7574513 Q5500334
(Q3927648,P57,c(Q502895)) (Q3221813,P57,c(Q502895)) (Q4019540,P57,c(Q502895)) (Q7746424,P57,c(Q502895)) (Q1547717,P57,c(Q502895)) (Q4782076,P57,c(Q502895)) (Q3824888,P57,c(Q502895)) (Q7450905,P57,c(Q502895)) (Q7574513,P57,c(Q502895)) (Q5500334,P57,c(Q502895))
[ANSWER]
['Q3927648', 'P57', {'concept': 'Q502895'}] ['Q3221813', 'P57', {'concept': 'Q502895'}] ['Q4019540', 'P57', {'concept': 'Q502895'}] ['Q7746424', 'P57', {'concept': 'Q502895'}] ['Q1547717', 'P57', {'concept': 'Q502895'}] ['Q4782076', 'P57', {'concept': 'Q502895'}] ['Q3824888', 'P57', {'concept': 'Q502895'}] ['Q7450905', 'P57', {'concept': 'Q502895'}] ['Q7574513', 'P57', {'concept': 'Q502895'}] ['Q5500334', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q5500334 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Red Hair The Eagle of the Sea White Man The Lawful Cheater The Plastic Age April Showers Street of Sin Senorita Special Delivery Free to Love
Did you mean Free to Love ?
Free to Love
['Red Hair', 'director', {'concept': 'common name'}] ['The Eagle of the Sea', 'director', {'concept': 'common name'}] ['White Man', 'director', {'concept': 'common name'}] ['The Lawful Cheater', 'director', {'concept': 'common name'}] ['The Plastic Age', 'director', {'concept': 'common name'}] ['April Showers', 'director', {'concept': 'common name'}] ['Street of Sin', 'director', {'concept': 'common name'}] ['Senorita', 'director', {'concept': 'common name'}] ['Special Delivery', 'director', {'concept': 'common name'}] ['Free to Love', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Free_to_Love property:director ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q5500334,P57,c(Q502895))
['Q5500334', 'P57', {'concept': 'Q502895'}]
['Free to Love', 'director', {'concept': 'common name'}]
[]
Q3082744
SYSTEM
Frank O'Connor
Q3082744
(Q5500334,P57,c(Q502895))
action filter_type
action find
entity Q5500334
relation P57
type Q502895
[ANSWER] directed that film genre
['Q5500334', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q5500334 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Frank O'Connor
Frank O'Connor directed that film genre
Frank O'Connor
action filter_type
action find
entity Free to Love
relation director
type common name
['Free to Love', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Free_to_Love property:director ?j . ?j rdf:type ontology:common_name }
[]