Simple Question (Direct)
Simple Question
Q1883152
P86
Q502895
USER
Who did the compostion for Madame Butterfly ?
(Q1883152,P86,c(Q502895))
action filter_type
action find
entity Q1883152
relation P86
type Q502895
['Q1883152', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1883152 property:P86 ?l . ?l rdf:type ontology:Q502895 }
Madame Butterfly
action filter_type
action find
entity Madame Butterfly
relation composer
type common name
['Madame Butterfly', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Madame_Butterfly property:composer ?l . ?l rdf:type ontology:common_name }
[]
common name
Q331123
SYSTEM
W. Franke Harling
Q331123
(Q1883152,P86,c(Q502895))
action filter_type
action find
entity Q1883152
relation P86
type Q502895
[ANSWER] did the compostion for Madame Butterfly
['Q1883152', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1883152 property:P86 ?l . ?l rdf:type ontology:Q502895 }
W. Franke Harling
W. Franke Harling did the compostion for Madame Butterfly
W. Franke Harling
action filter_type
action find
entity Madame Butterfly
relation composer
type common name
['Madame Butterfly', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Madame_Butterfly property:composer ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1883152
P495
Q15617994
USER
Which administrative territory is the origin of that work of art ?
(Q331123,P495,c(Q15617994))
action filter_type
action find
entity Q1883152
relation P495
type Q15617994
['Q331123', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1883152 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
Madame Butterfly
action filter_type
action find
entity Madame Butterfly
relation country of origin
type designation for an administrative territorial entity
['W. Franke Harling', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Madame_Butterfly property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q331123,P495,c(Q15617994))
action filter_type
action find
entity Q1883152
relation P495
type Q15617994
[ANSWER] is the origin of that work of art
['Q331123', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1883152 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
United States of America
United States of America is the origin of that work of art
United States of America
action filter_type
action find
entity Madame Butterfly
relation country of origin
type designation for an administrative territorial entity
['W. Franke Harling', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Madame_Butterfly property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1883152
P162
Q502895
USER
Who is the producer of Madame Butterfly ?
(Q1883152,P162,c(Q502895))
action filter_type
action find
entity Q1883152
relation P162
type Q502895
['Q1883152', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1883152 property:P162 ?j . ?j rdf:type ontology:Q502895 }
Madame Butterfly
action filter_type
action find
entity Madame Butterfly
relation producer
type common name
['Madame Butterfly', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Madame_Butterfly property:producer ?j . ?j rdf:type ontology:common_name }
[]
common name
Q285357
SYSTEM
B. P. Schulberg
Q285357
(Q1883152,P162,c(Q502895))
action filter_type
action find
entity Q1883152
relation P162
type Q502895
The producer of Madame Butterfly is the [ANSWER]
['Q1883152', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1883152 property:P162 ?j . ?j rdf:type ontology:Q502895 }
B. P. Schulberg
The producer of Madame Butterfly is the B. P. Schulberg
B. P. Schulberg
action filter_type
action find
entity Madame Butterfly
relation producer
type common name
['Madame Butterfly', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Madame_Butterfly property:producer ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1883152
P57
Q502895
USER
Who was the director of Madame Butterfly ?
(Q1883152,P57,c(Q502895))
action filter_type
action find
entity Q1883152
relation P57
type Q502895
['Q1883152', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q1883152 property:P57 ?u . ?u rdf:type ontology:Q502895 }
Madame Butterfly
action filter_type
action find
entity Madame Butterfly
relation director
type common name
['Madame Butterfly', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Madame_Butterfly property:director ?u . ?u rdf:type ontology:common_name }
[]
common name
Q1596657
SYSTEM
Marion Gering
Q1596657
(Q1883152,P57,c(Q502895))
action filter_type
action find
entity Q1883152
relation P57
type Q502895
The director of Madame Butterfly was [ANSWER]
['Q1883152', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q1883152 property:P57 ?u . ?u rdf:type ontology:Q502895 }
Marion Gering
The director of Madame Butterfly was Marion Gering
Marion Gering
action filter_type
action find
entity Madame Butterfly
relation director
type common name
['Madame Butterfly', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Madame_Butterfly property:director ?u . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1596657 Q5161792
P27
Q15617994
USER
Is that person a civilian of Connetquot School District ?
(Q1596657,P27,Q5161792)
action is_in
entity Q5161792
action find
entity Q1596657
relation P27
['Q1596657', 'P27', 'Q5161792']
ASK WHERE { resource:Q1596657 property:P27 resource:Q5161792 }
Marion Gering Connetquot School District
action is_in
entity Connetquot School District
action find
entity Marion Gering
relation country of citizenship
['Marion Gering', 'country of citizenship', 'Connetquot School District']
ASK WHERE { resource:Marion_Gering property:country_of_citizenship resource:Connetquot_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1596657,P27,Q5161792)
action is_in
entity Q5161792
action find
entity Q1596657
relation P27
[ANSWER]
['Q1596657', 'P27', 'Q5161792']
ASK WHERE { resource:Q1596657 property:P27 resource:Q5161792 }
No
action is_in
entity Connetquot School District
action find
entity Marion Gering
relation country of citizenship
['Marion Gering', 'country of citizenship', 'Connetquot School District']
ASK WHERE { resource:Marion_Gering property:country_of_citizenship resource:Connetquot_School_District }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q331123 Q145
P27
Q15617994
USER
Does W. Franke Harling belong to United Kingdom ?
(Q331123,P27,Q145)
action is_in
entity Q145
action find
entity Q331123
relation P27
['Q331123', 'P27', 'Q145']
ASK WHERE { resource:Q331123 property:P27 resource:Q145 }
W. Franke Harling United Kingdom
action is_in
entity United Kingdom
action find
entity W. Franke Harling
relation country of citizenship
['W. Franke Harling', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:W._Franke_Harling property:country_of_citizenship resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q331123,P27,Q145)
action is_in
entity Q145
action find
entity Q331123
relation P27
[ANSWER]
['Q331123', 'P27', 'Q145']
ASK WHERE { resource:Q331123 property:P27 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity W. Franke Harling
relation country of citizenship
['W. Franke Harling', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:W._Franke_Harling property:country_of_citizenship resource:United_Kingdom }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q22676587 Q1307214 Q15617994
USER
Which administrative territories have atmost 1 monarchic systems and forms of government as government ?
(c(Q15617994),P122,c(Q22676587)|c(Q1307214))
action atmost
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?l ) WHERE { { ?u property:P122 ?b . ?u rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q22676587 } UNION { ?u rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1307214 . ?u property:P122 ?b } } GROUP BY ?u } . FILTER ( ?l <= 1 ) }
action atmost
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?l ) WHERE { { ?u property:basic_form_of_government ?b . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:monarchic_system } UNION { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:form_of_government . ?u property:basic_form_of_government ?b } } GROUP BY ?u } . FILTER ( ?l <= 1 ) }
[]
monarchic system form of government designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q833 Q711 Q717 Q837 Q208500 Q541991 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q889 Q884 Q958 Q689837 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q238 Q20 Q1045 Q27 Q28 Q29 Q313175 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q815731 Q96 Q228 Q17 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q1483510 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q696651 Q77 Q199688 Q878 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q22676587)|c(Q1307214))
action atmost
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
value 1
[ANSWERS] have atmost 1 monarchic systems and forms of government as government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?l ) WHERE { { ?u property:P122 ?b . ?u rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q22676587 } UNION { ?u rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1307214 . ?u property:P122 ?b } } GROUP BY ?u } . FILTER ( ?l <= 1 ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Malaysia Mongolia Venezuela Nepal principality Hummelfeld Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran Afghanistan South Korea South Sudan Spanish Sahara Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan San Marino Norway Somalia Ireland Hungary Spain Saxe-Lauenburg Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Principality of Bulgaria Mexico Andorra Japan Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Principality of Wales Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Saxe-Eisenach Uruguay Almohad United Arab Emirates Tunisia Nicaragua Cape Verde Lesotho Sudan
Italy, Brazil and United States of America have atmost 1 monarchic systems and forms of government as government
Italy Brazil United States of America
action atmost
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?l ) WHERE { { ?u property:basic_form_of_government ?b . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:monarchic_system } UNION { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:form_of_government . ?u property:basic_form_of_government ?b } } GROUP BY ?u } . FILTER ( ?l <= 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q54000
P530
Q15617994
USER
Do Scalea have diplomatic relations with those ones ?
(Q54000,P530,Q38) (Q54000,P530,Q155) (Q54000,P530,Q30)
action is_in
entity prev_answer
action find
entity Q54000
relation P530
['Q54000', 'P530', 'Q38'] ['Q54000', 'P530', 'Q155'] ['Q54000', 'P530', 'Q30']
ASK WHERE { resource:Q54000 property:P530 ?i . VALUES ( ?i ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q154547 ) } }
Scalea
action is_in
entity prev_answer
action find
entity Scalea
relation diplomatic relation
['Scalea', 'diplomatic relation', 'Italy'] ['Scalea', 'diplomatic relation', 'Brazil'] ['Scalea', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Scalea property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:duchy ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q54000,P530,Q38) (Q54000,P530,Q155) (Q54000,P530,Q30)
action is_in
entity prev_answer
action find
entity Q54000
relation P530
[ANSWER]
['Q54000', 'P530', 'Q38'] ['Q54000', 'P530', 'Q155'] ['Q54000', 'P530', 'Q30']
ASK WHERE { resource:Q54000 property:P530 ?i . VALUES ( ?i ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q154547 ) } }
No
action is_in
entity prev_answer
action find
entity Scalea
relation diplomatic relation
['Scalea', 'diplomatic relation', 'Italy'] ['Scalea', 'diplomatic relation', 'Brazil'] ['Scalea', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Scalea property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:duchy ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q153832
P35
Q502895
USER
Is Alcide De Gasperi elected as the head of state of Italy ?
(Q38,P35,Q153832)
action is_in
entity Q153832
action find
entity Q38
relation P35
['Q38', 'P35', 'Q153832']
ASK WHERE { resource:Q38 property:P35 resource:Q153832 }
Italy Alcide De Gasperi
action is_in
entity Alcide De Gasperi
action find
entity Italy
relation head of state
['Italy', 'head of state', 'Alcide De Gasperi']
ASK WHERE { resource:Italy property:head_of_state resource:Alcide_De_Gasperi }
[]
common name
SYSTEM
YES
(Q38,P35,Q153832)
action is_in
entity Q153832
action find
entity Q38
relation P35
[ANSWER]
['Q38', 'P35', 'Q153832']
ASK WHERE { resource:Q38 property:P35 resource:Q153832 }
Yes
action is_in
entity Alcide De Gasperi
action find
entity Italy
relation head of state
['Italy', 'head of state', 'Alcide De Gasperi']
ASK WHERE { resource:Italy property:head_of_state resource:Alcide_De_Gasperi }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q285357 Q1285601
P27
Q15617994
USER
Is Novi Zagreb – zapad the native country of B. P. Schulberg ?
(Q285357,P27,Q1285601)
action is_in
entity Q1285601
action find
entity Q285357
relation P27
['Q285357', 'P27', 'Q1285601']
ASK WHERE { resource:Q285357 property:P27 resource:Q1285601 }
B. P. Schulberg Novi Zagreb – zapad
action is_in
entity Novi Zagreb – zapad
action find
entity B. P. Schulberg
relation country of citizenship
['B. P. Schulberg', 'country of citizenship', 'Novi Zagreb – zapad']
ASK WHERE { resource:B._P._Schulberg property:country_of_citizenship resource:Novi_Zagreb_–_zapad }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q285357,P27,Q1285601)
action is_in
entity Q1285601
action find
entity Q285357
relation P27
[ANSWER]
['Q285357', 'P27', 'Q1285601']
ASK WHERE { resource:Q285357 property:P27 resource:Q1285601 }
No
action is_in
entity Novi Zagreb – zapad
action find
entity B. P. Schulberg
relation country of citizenship
['B. P. Schulberg', 'country of citizenship', 'Novi Zagreb – zapad']
ASK WHERE { resource:B._P._Schulberg property:country_of_citizenship resource:Novi_Zagreb_–_zapad }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q170361
P530
Q1048835
USER
Does Saar have diplomatic relationships with Italy ?
(Q38,P530,Q170361)
action is_in
entity Q170361
action find
entity Q38
relation P530
['Q38', 'P530', 'Q170361']
ASK WHERE { resource:Q38 property:P530 resource:Q170361 }
Italy Saar
action is_in
entity Saar
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Saar']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Saar }
[]
political territorial entity
SYSTEM
NO
(Q38,P530,Q170361)
action is_in
entity Q170361
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q170361']
ASK WHERE { resource:Q38 property:P530 resource:Q170361 }
No
action is_in
entity Saar
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Saar']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Saar }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q838948 Q201658 Q5398426
USER
Which works of art do around 1 film genres and television series extend upon ?
(c(Q201658)|c(Q5398426),P144,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q201658
action find_reverse_tuple_counts
relation P144
type Q838948
type Q5398426
value 1
[[{'concept': 'Q201658'}, {'concept': 'Q5398426'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?t WHERE { ?k rdf:type ?u . VALUES ( ?u ) { ( ontology:Q201658 ) ( ontology:Q5398426 ) } } GROUP BY ?t } . FILTER ( ?r = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation based on
type work of art
type film genre
action find_reverse_tuple_counts
relation based on
type work of art
type television series
value 1
[[{'concept': 'film genre'}, {'concept': 'television series'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?t WHERE { ?k rdf:type ?u . VALUES ( ?u ) { ( ontology:film_genre ) ( ontology:television_series ) } } GROUP BY ?t } . FILTER ( ?r = 1 ) }
[]
work of art film genre television series
Q26833 Q83186 Q3481943
SYSTEM
Othello, Romeo and Juliet, Sherlock Holmes
Q5331173 Q7457308 Q5095462 Q7548351 Q83186 Q7722470 Q1248928 Q2337685 Q7713385 Q7715789 Q7776285 Q26833 Q176465 Q3481943 Q7991351 Q321047 Q4685705 Q7754681 Q7837980 Q3740328 Q3989443 Q1212719 Q1169767 Q3066270
(c(Q201658)|c(Q5398426),P144,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q201658
action find_reverse_tuple_counts
relation P144
type Q838948
type Q5398426
value 1
The [ANSWERS] around 1 film genres and television series extend upon
[[{'concept': 'Q201658'}, {'concept': 'Q5398426'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?t WHERE { ?k rdf:type ?u . VALUES ( ?u ) { ( ontology:Q201658 ) ( ontology:Q5398426 ) } } GROUP BY ?t } . FILTER ( ?r = 1 ) }
Easy Virtue Seven Keys to Baldpate Chicago Snow White and the Seven Dwarfs Romeo and Juliet The Children's Hour The Admirable Crichton Angels in America: A Gay Fantasia on National Themes The Amazons The Bat The Wrecker Othello Hedda Gabler Sherlock Holmes What Price Glory? Abie's Irish Rose Adrienne Lecouvreur The Octoroon Trelawny of the 'Wells' The Cat and the Canary The Squaw Man The Lady from the Sea The Miracle Florodora
The Othello, Romeo and Juliet and Sherlock Holmes around 1 film genres and television series extend upon
Othello Romeo and Juliet Sherlock Holmes
action approx
action union
action find_reverse_tuple_counts
relation based on
type work of art
type film genre
action find_reverse_tuple_counts
relation based on
type work of art
type television series
value 1
[[{'concept': 'film genre'}, {'concept': 'television series'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?t WHERE { ?k rdf:type ?u . VALUES ( ?u ) { ( ontology:film_genre ) ( ontology:television_series ) } } GROUP BY ?t } . FILTER ( ?r = 1 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P144
Q838948 Q201658
USER
How many works of art and film genres are adapted from that work of art ?
(c(Q838948),P144,Q3481943) (c(Q201658),P144,Q3481943) (c(Q838948),P144,Q26833) (c(Q201658),P144,Q26833) (c(Q838948),P144,Q83186) (c(Q201658),P144,Q83186) (c(Q838948),P144,Q3481943) (c(Q201658),P144,Q3481943)
[{'concept': 'Q838948'}, 'P144', 'Q3481943'] [{'concept': 'Q201658'}, 'P144', 'Q3481943'] [{'concept': 'Q838948'}, 'P144', 'Q26833'] [{'concept': 'Q201658'}, 'P144', 'Q26833'] [{'concept': 'Q838948'}, 'P144', 'Q83186'] [{'concept': 'Q201658'}, 'P144', 'Q83186'] [{'concept': 'Q838948'}, 'P144', 'Q3481943'] [{'concept': 'Q201658'}, 'P144', 'Q3481943']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P144 resource:Q2003242 } UNION { ?y property:P144 resource:Q2003242 } UNION { ?z property:P144 resource:Q7108558 } UNION { ?y property:P144 resource:Q7108558 } UNION { ?z property:P144 resource:Q19968309 } UNION { ?y property:P144 resource:Q19968309 } UNION { ?z property:P144 resource:Q2003242 } UNION { ?y property:P144 resource:Q2003242 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q201658 }
[{'concept': 'work of art'}, 'based on', 'Sherlock Holmes'] [{'concept': 'film genre'}, 'based on', 'Sherlock Holmes'] [{'concept': 'work of art'}, 'based on', 'Othello'] [{'concept': 'film genre'}, 'based on', 'Othello'] [{'concept': 'work of art'}, 'based on', 'Romeo and Juliet'] [{'concept': 'film genre'}, 'based on', 'Romeo and Juliet'] [{'concept': 'work of art'}, 'based on', 'Sherlock Holmes'] [{'concept': 'film genre'}, 'based on', 'Sherlock Holmes']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:based_on resource:Sherlock_Holmes } UNION { ?y property:based_on resource:Sherlock_Holmes } UNION { ?z property:based_on resource:Othello } UNION { ?y property:based_on resource:Othello } UNION { ?z property:based_on resource:Romeo_and_Juliet } UNION { ?y property:based_on resource:Romeo_and_Juliet } UNION { ?z property:based_on resource:Sherlock_Holmes } UNION { ?y property:based_on resource:Sherlock_Holmes } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:film_genre }
[]
work of art film genre
Quantitative|Count|Mult. entity type|Clarification
Q83186
SYSTEM
Did you mean Romeo and Juliet ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P144 resource:Q2003242 } UNION { ?y property:P144 resource:Q2003242 } UNION { ?z property:P144 resource:Q7108558 } UNION { ?y property:P144 resource:Q7108558 } UNION { ?z property:P144 resource:Q19968309 } UNION { ?y property:P144 resource:Q19968309 } UNION { ?z property:P144 resource:Q2003242 } UNION { ?y property:P144 resource:Q2003242 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q201658 }
Did you mean Romeo and Juliet ?
Romeo and Juliet
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:based_on resource:Sherlock_Holmes } UNION { ?y property:based_on resource:Sherlock_Holmes } UNION { ?z property:based_on resource:Othello } UNION { ?y property:based_on resource:Othello } UNION { ?z property:based_on resource:Romeo_and_Juliet } UNION { ?y property:based_on resource:Romeo_and_Juliet } UNION { ?z property:based_on resource:Sherlock_Holmes } UNION { ?y property:based_on resource:Sherlock_Holmes } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:film_genre }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Sherlock Holmes. Could you tell me the answer for that?
(c(Q838948),P144,Q3481943) (c(Q201658),P144,Q3481943) (c(Q838948),P144,Q26833) (c(Q201658),P144,Q26833) (c(Q838948),P144,Q83186) (c(Q201658),P144,Q83186) (c(Q838948),P144,Q3481943) (c(Q201658),P144,Q3481943)
Q3481943
[{'concept': 'Q838948'}, 'P144', 'Q3481943'] [{'concept': 'Q201658'}, 'P144', 'Q3481943'] [{'concept': 'Q838948'}, 'P144', 'Q26833'] [{'concept': 'Q201658'}, 'P144', 'Q26833'] [{'concept': 'Q838948'}, 'P144', 'Q83186'] [{'concept': 'Q201658'}, 'P144', 'Q83186'] [{'concept': 'Q838948'}, 'P144', 'Q3481943'] [{'concept': 'Q201658'}, 'P144', 'Q3481943']
[{'concept': 'work of art'}, 'based on', 'Sherlock Holmes'] [{'concept': 'film genre'}, 'based on', 'Sherlock Holmes'] [{'concept': 'work of art'}, 'based on', 'Othello'] [{'concept': 'film genre'}, 'based on', 'Othello'] [{'concept': 'work of art'}, 'based on', 'Romeo and Juliet'] [{'concept': 'film genre'}, 'based on', 'Romeo and Juliet'] [{'concept': 'work of art'}, 'based on', 'Sherlock Holmes'] [{'concept': 'film genre'}, 'based on', 'Sherlock Holmes']
[]
SYSTEM
1 works of art and 1 film genres
Q3077445 Q2003242
(c(Q838948),P144,Q3481943) (c(Q201658),P144,Q3481943) (c(Q838948),P144,Q26833) (c(Q201658),P144,Q26833) (c(Q838948),P144,Q83186) (c(Q201658),P144,Q83186) (c(Q838948),P144,Q3481943) (c(Q201658),P144,Q3481943)
[ANSWER]
[{'concept': 'Q838948'}, 'P144', 'Q3481943'] [{'concept': 'Q201658'}, 'P144', 'Q3481943'] [{'concept': 'Q838948'}, 'P144', 'Q26833'] [{'concept': 'Q201658'}, 'P144', 'Q26833'] [{'concept': 'Q838948'}, 'P144', 'Q83186'] [{'concept': 'Q201658'}, 'P144', 'Q83186'] [{'concept': 'Q838948'}, 'P144', 'Q3481943'] [{'concept': 'Q201658'}, 'P144', 'Q3481943']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P144 resource:Q2003242 } UNION { ?y property:P144 resource:Q2003242 } UNION { ?z property:P144 resource:Q7108558 } UNION { ?y property:P144 resource:Q7108558 } UNION { ?z property:P144 resource:Q19968309 } UNION { ?y property:P144 resource:Q19968309 } UNION { ?z property:P144 resource:Q2003242 } UNION { ?y property:P144 resource:Q2003242 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q201658 }
Sherlock Holmes Sherlock Holmes
1 works of art and 1 film genres
[{'concept': 'work of art'}, 'based on', 'Sherlock Holmes'] [{'concept': 'film genre'}, 'based on', 'Sherlock Holmes'] [{'concept': 'work of art'}, 'based on', 'Othello'] [{'concept': 'film genre'}, 'based on', 'Othello'] [{'concept': 'work of art'}, 'based on', 'Romeo and Juliet'] [{'concept': 'film genre'}, 'based on', 'Romeo and Juliet'] [{'concept': 'work of art'}, 'based on', 'Sherlock Holmes'] [{'concept': 'film genre'}, 'based on', 'Sherlock Holmes']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:based_on resource:Sherlock_Holmes } UNION { ?y property:based_on resource:Sherlock_Holmes } UNION { ?z property:based_on resource:Othello } UNION { ?y property:based_on resource:Othello } UNION { ?z property:based_on resource:Romeo_and_Juliet } UNION { ?y property:based_on resource:Romeo_and_Juliet } UNION { ?z property:based_on resource:Sherlock_Holmes } UNION { ?y property:based_on resource:Sherlock_Holmes } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:film_genre }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q8575586
P37
Q34770 Q5962346 Q15617994
USER
How many administrative territories are more number of languages or classification schemes the official language of than Umayyad Caliphate ?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
action greater
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action count
action filter_multi_types
action find
entity Q8575586
relation P37
type Q34770
type Q5962346
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?h WHERE { VALUES ( ?v ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } . ?o rdf:type ?v } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:Q8575586 property:P37 ?l . { { ?l rdf:type ontology:Q34770 } UNION { ?l rdf:type ontology:Q5962346 } } } } . FILTER ( ?r > ?g ) }
Umayyad Caliphate
action count
action greater
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action count
action filter_multi_types
action find
entity Umayyad Caliphate
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?h WHERE { VALUES ( ?v ) { ( ontology:language ) ( ontology:classification_scheme ) } . ?o rdf:type ?v } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:Umayyad_Caliphate property:official_language ?l . { { ?l rdf:type ontology:language } UNION { ?l rdf:type ontology:classification_scheme } } } } . FILTER ( ?r > ?g ) }
[]
language classification scheme designation for an administrative territorial entity
SYSTEM
86
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q29 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q750 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
action greater
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action count
action filter_multi_types
action find
entity Q8575586
relation P37
type Q34770
type Q5962346
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?h WHERE { VALUES ( ?v ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } . ?o rdf:type ?v } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:Q8575586 property:P37 ?l . { { ?l rdf:type ontology:Q34770 } UNION { ?l rdf:type ontology:Q5962346 } } } } . FILTER ( ?r > ?g ) }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Spain Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Bolivia Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
86
action count
action greater
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action count
action filter_multi_types
action find
entity Umayyad Caliphate
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?h WHERE { VALUES ( ?v ) { ( ontology:language ) ( ontology:classification_scheme ) } . ?o rdf:type ?v } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:Umayyad_Caliphate property:official_language ?l . { { ?l rdf:type ontology:language } UNION { ?l rdf:type ontology:classification_scheme } } } } . FILTER ( ?r > ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q21850324
P37
Q34770 Q5962346 Q15617994
USER
And what about Gireyevo?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
action greater
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action count
action filter_multi_types
action find
entity Q21850324
relation P37
type Q34770
type Q5962346
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?h WHERE { ?y rdf:type ?n . VALUES ( ?n ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { resource:Q21850324 property:P37 ?g . { { ?g rdf:type ontology:Q5962346 } UNION { ?g rdf:type ontology:Q34770 } } } } . FILTER ( ?x > ?c ) }
Gireyevo
action count
action greater
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action count
action filter_multi_types
action find
entity Gireyevo
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?h WHERE { ?y rdf:type ?n . VALUES ( ?n ) { ( ontology:language ) ( ontology:classification_scheme ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { resource:Gireyevo property:official_language ?g . { { ?g rdf:type ontology:classification_scheme } UNION { ?g rdf:type ontology:language } } } } . FILTER ( ?x > ?c ) }
[]
language classification scheme designation for an administrative territorial entity
SYSTEM
86
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q29 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q750 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
action greater
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action count
action filter_multi_types
action find
entity Q21850324
relation P37
type Q34770
type Q5962346
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?h WHERE { ?y rdf:type ?n . VALUES ( ?n ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { resource:Q21850324 property:P37 ?g . { { ?g rdf:type ontology:Q5962346 } UNION { ?g rdf:type ontology:Q34770 } } } } . FILTER ( ?x > ?c ) }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Spain Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Bolivia Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
86
action count
action greater
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action count
action filter_multi_types
action find
entity Gireyevo
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?h WHERE { ?y rdf:type ?n . VALUES ( ?n ) { ( ontology:language ) ( ontology:classification_scheme ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { resource:Gireyevo property:official_language ?g . { { ?g rdf:type ontology:classification_scheme } UNION { ?g rdf:type ontology:language } } } } . FILTER ( ?x > ?c ) }
[]