Simple Question (Direct)
Simple Question
Q1562316
P27
Q15617994
USER
Which administrative territory is Rudolf Sremec an inhabitant of ?
(Q1562316,P27,c(Q15617994))
action filter_type
action find
entity Q1562316
relation P27
type Q15617994
['Q1562316', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q1562316 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Rudolf Sremec
action filter_type
action find
entity Rudolf Sremec
relation country of citizenship
type designation for an administrative territorial entity
['Rudolf Sremec', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Rudolf_Sremec property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q224
SYSTEM
Croatia
Q224
(Q1562316,P27,c(Q15617994))
action filter_type
action find
entity Q1562316
relation P27
type Q15617994
[ANSWER] is Rudolf Sremec an inhabitant of
['Q1562316', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q1562316 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Croatia
Croatia is Rudolf Sremec an inhabitant of
Croatia
action filter_type
action find
entity Rudolf Sremec
relation country of citizenship
type designation for an administrative territorial entity
['Rudolf Sremec', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Rudolf_Sremec property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1562316
P58
Q838948
USER
What is that person a screwriter of ?
(c(Q838948),P58,Q224)
action filter_type
action find_reverse
entity Q1562316
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q224']
SELECT DISTINCT ?k WHERE { ?k property:P58 resource:Q1562316 . ?k rdf:type ontology:Q838948 }
Rudolf Sremec
action filter_type
action find_reverse
entity Rudolf Sremec
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Croatia']
SELECT DISTINCT ?k WHERE { ?k property:screenwriter resource:Rudolf_Sremec . ?k rdf:type ontology:work_of_art }
[]
work of art
Q1193176
SYSTEM
Surogat
Q1193176
(c(Q838948),P58,Q224)
action filter_type
action find_reverse
entity Q1562316
relation P58
type Q838948
That person a screwriter of is a [ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q224']
SELECT DISTINCT ?k WHERE { ?k property:P58 resource:Q1562316 . ?k rdf:type ontology:Q838948 }
Surogat
That person a screwriter of is a Surogat
Surogat
action filter_type
action find_reverse
entity Rudolf Sremec
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Croatia']
SELECT DISTINCT ?k WHERE { ?k property:screenwriter resource:Rudolf_Sremec . ?k rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1193176 Q6171146 Q1562316
P58
Q502895
USER
Is Jean Maurice Tourneux and Rudolf Sremec a screenwriter of Q1193176 ?
(Q1193176,P58,Q6171146) (Q1193176,P58,Q1562316)
action is_in
entity Q1193176
action intersection
action find_reverse
entity Q6171146
relation P58
action find_reverse
entity Q1562316
relation P58
['Q1193176', 'P58', 'Q6171146'] ['Q1193176', 'P58', 'Q1562316']
ASK WHERE { resource:Q1193176 property:P58 resource:Q1562316 . resource:Q1193176 property:P58 resource:Q6171146 }
Surogat Jean Maurice Tourneux Rudolf Sremec
action is_in
entity Surogat
action intersection
action find_reverse
entity Jean Maurice Tourneux
relation screenwriter
action find_reverse
entity Rudolf Sremec
relation screenwriter
['Surogat', 'screenwriter', 'Jean Maurice Tourneux'] ['Surogat', 'screenwriter', 'Rudolf Sremec']
ASK WHERE { resource:Surogat property:screenwriter resource:Rudolf_Sremec . resource:Surogat property:screenwriter resource:Jean_Maurice_Tourneux }
[]
common name
SYSTEM
NO and YES respectively
(Q1193176,P58,Q6171146) (Q1193176,P58,Q1562316)
action is_in
entity Q1193176
action intersection
action find_reverse
entity Q6171146
relation P58
action find_reverse
entity Q1562316
relation P58
[ANSWER]
['Q1193176', 'P58', 'Q6171146'] ['Q1193176', 'P58', 'Q1562316']
ASK WHERE { resource:Q1193176 property:P58 resource:Q1562316 . resource:Q1193176 property:P58 resource:Q6171146 }
NO and YES respectively
action is_in
entity Surogat
action intersection
action find_reverse
entity Jean Maurice Tourneux
relation screenwriter
action find_reverse
entity Rudolf Sremec
relation screenwriter
['Surogat', 'screenwriter', 'Jean Maurice Tourneux'] ['Surogat', 'screenwriter', 'Rudolf Sremec']
ASK WHERE { resource:Surogat property:screenwriter resource:Rudolf_Sremec . resource:Surogat property:screenwriter resource:Jean_Maurice_Tourneux }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q224 Q38
P530
Q15617994
USER
Does Italy have diplomatic relationships with Croatia ?
(Q224,P530,Q38)
action is_in
entity Q38
action find
entity Q224
relation P530
['Q224', 'P530', 'Q38']
ASK WHERE { resource:Q224 property:P530 resource:Q38 }
Croatia Italy
action is_in
entity Italy
action find
entity Croatia
relation diplomatic relation
['Croatia', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Croatia property:diplomatic_relation resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q224,P530,Q38)
action is_in
entity Q38
action find
entity Q224
relation P530
[ANSWER]
['Q224', 'P530', 'Q38']
ASK WHERE { resource:Q224 property:P530 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Croatia
relation diplomatic relation
['Croatia', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Croatia property:diplomatic_relation resource:Italy }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1193176 Q1562316
P58
Q502895
USER
Did Rudolf Sremec write the script for Surogat ?
(Q1193176,P58,Q1562316)
action is_in
entity Q1562316
action find
entity Q1193176
relation P58
['Q1193176', 'P58', 'Q1562316']
ASK WHERE { resource:Q1193176 property:P58 resource:Q1562316 }
Surogat Rudolf Sremec
action is_in
entity Rudolf Sremec
action find
entity Surogat
relation screenwriter
['Surogat', 'screenwriter', 'Rudolf Sremec']
ASK WHERE { resource:Surogat property:screenwriter resource:Rudolf_Sremec }
[]
common name
SYSTEM
YES
(Q1193176,P58,Q1562316)
action is_in
entity Q1562316
action find
entity Q1193176
relation P58
[ANSWER]
['Q1193176', 'P58', 'Q1562316']
ASK WHERE { resource:Q1193176 property:P58 resource:Q1562316 }
Yes
action is_in
entity Rudolf Sremec
action find
entity Surogat
relation screenwriter
['Surogat', 'screenwriter', 'Rudolf Sremec']
ASK WHERE { resource:Surogat property:screenwriter resource:Rudolf_Sremec }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3981539 Q1193176
P57
Q502895
USER
Which people were Surogat or Tatuaje directed by ?
OR((Q1193176,P57,c(Q502895)), (Q3981539,P57,c(Q502895)))
action filter_type
action union
action find
entity Q1193176
relation P57
action find
entity Q3981539
relation P57
type Q502895
{'OR': [['Q1193176', 'P57', {'concept': 'Q502895'}], ['Q3981539', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1193176 property:P57 ?z } UNION { resource:Q3981539 property:P57 ?z } } . ?z rdf:type ontology:Q502895 }
Tatuaje Surogat
action filter_type
action union
action find
entity Surogat
relation director
action find
entity Tatuaje
relation director
type common name
{'OR': [['Surogat', 'director', {'concept': 'common name'}], ['Tatuaje', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Surogat property:director ?z } UNION { resource:Tatuaje property:director ?z } } . ?z rdf:type ontology:common_name }
[]
common name
Q1268232 Q468785
SYSTEM
Dušan Vukotić, Bigas Luna
Q1268232 Q468785
OR((Q1193176,P57,c(Q502895)), (Q3981539,P57,c(Q502895)))
action filter_type
action union
action find
entity Q1193176
relation P57
action find
entity Q3981539
relation P57
type Q502895
Surogat or Tatuaje were directed by [ANSWERS]
{'OR': [['Q1193176', 'P57', {'concept': 'Q502895'}], ['Q3981539', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1193176 property:P57 ?z } UNION { resource:Q3981539 property:P57 ?z } } . ?z rdf:type ontology:Q502895 }
Dušan Vukotić Bigas Luna
Surogat or Tatuaje were directed by Dušan Vukotić and Bigas Luna
Dušan Vukotić Bigas Luna
action filter_type
action union
action find
entity Surogat
relation director
action find
entity Tatuaje
relation director
type common name
{'OR': [['Surogat', 'director', {'concept': 'common name'}], ['Tatuaje', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Surogat property:director ?z } UNION { resource:Tatuaje property:director ?z } } . ?z rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q12737077 Q28640
USER
How many occupations and professions are the professions of that person ?
(Q468785,P106,c(Q12737077)) (Q468785,P106,c(Q28640)) (Q1268232,P106,c(Q12737077)) (Q1268232,P106,c(Q28640)) (Q468785,P106,c(Q12737077)) (Q468785,P106,c(Q28640))
['Q468785', 'P106', {'concept': 'Q12737077'}] ['Q468785', 'P106', {'concept': 'Q28640'}] ['Q1268232', 'P106', {'concept': 'Q12737077'}] ['Q1268232', 'P106', {'concept': 'Q28640'}] ['Q468785', 'P106', {'concept': 'Q12737077'}] ['Q468785', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q468785 property:Q528892 ?z } UNION { resource:Q468785 property:Q528892 ?y } UNION { resource:Q1268232 property:Q528892 ?z } UNION { resource:Q1268232 property:Q528892 ?y } UNION { resource:Q468785 property:Q528892 ?z } UNION { resource:Q468785 property:Q528892 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q28640 }
['Bigas Luna', 'occupation', {'concept': 'occupation'}] ['Bigas Luna', 'occupation', {'concept': 'profession'}] ['Dušan Vukotić', 'occupation', {'concept': 'occupation'}] ['Dušan Vukotić', 'occupation', {'concept': 'profession'}] ['Bigas Luna', 'occupation', {'concept': 'occupation'}] ['Bigas Luna', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Bigas_Luna property:occupation ?z } UNION { resource:Bigas_Luna property:occupation ?y } UNION { resource:Dušan_Vukotić property:occupation ?z } UNION { resource:Dušan_Vukotić property:occupation ?y } UNION { resource:Bigas_Luna property:occupation ?z } UNION { resource:Bigas_Luna property:occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:profession }
[]
occupation profession
Quantitative|Count|Mult. entity type|Clarification
Q1268232
SYSTEM
Did you mean Dušan Vukotić ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q468785 property:Q528892 ?z } UNION { resource:Q468785 property:Q528892 ?y } UNION { resource:Q1268232 property:Q528892 ?z } UNION { resource:Q1268232 property:Q528892 ?y } UNION { resource:Q468785 property:Q528892 ?z } UNION { resource:Q468785 property:Q528892 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q28640 }
Did you mean Dušan Vukotić ?
Dušan Vukotić
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Bigas_Luna property:occupation ?z } UNION { resource:Bigas_Luna property:occupation ?y } UNION { resource:Dušan_Vukotić property:occupation ?z } UNION { resource:Dušan_Vukotić property:occupation ?y } UNION { resource:Bigas_Luna property:occupation ?z } UNION { resource:Bigas_Luna property:occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:profession }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Bigas Luna. Could you tell me the answer for that?
(Q468785,P106,c(Q12737077)) (Q468785,P106,c(Q28640)) (Q1268232,P106,c(Q12737077)) (Q1268232,P106,c(Q28640)) (Q468785,P106,c(Q12737077)) (Q468785,P106,c(Q28640))
Q468785
['Q468785', 'P106', {'concept': 'Q12737077'}] ['Q468785', 'P106', {'concept': 'Q28640'}] ['Q1268232', 'P106', {'concept': 'Q12737077'}] ['Q1268232', 'P106', {'concept': 'Q28640'}] ['Q468785', 'P106', {'concept': 'Q12737077'}] ['Q468785', 'P106', {'concept': 'Q28640'}]
['Bigas Luna', 'occupation', {'concept': 'occupation'}] ['Bigas Luna', 'occupation', {'concept': 'profession'}] ['Dušan Vukotić', 'occupation', {'concept': 'occupation'}] ['Dušan Vukotić', 'occupation', {'concept': 'profession'}] ['Bigas Luna', 'occupation', {'concept': 'occupation'}] ['Bigas Luna', 'occupation', {'concept': 'profession'}]
[]
SYSTEM
1 occupations and 2 professions
Q2526255 Q28389 Q5322166
(Q468785,P106,c(Q12737077)) (Q468785,P106,c(Q28640)) (Q1268232,P106,c(Q12737077)) (Q1268232,P106,c(Q28640)) (Q468785,P106,c(Q12737077)) (Q468785,P106,c(Q28640))
[ANSWER]
['Q468785', 'P106', {'concept': 'Q12737077'}] ['Q468785', 'P106', {'concept': 'Q28640'}] ['Q1268232', 'P106', {'concept': 'Q12737077'}] ['Q1268232', 'P106', {'concept': 'Q28640'}] ['Q468785', 'P106', {'concept': 'Q12737077'}] ['Q468785', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q468785 property:Q528892 ?z } UNION { resource:Q468785 property:Q528892 ?y } UNION { resource:Q1268232 property:Q528892 ?z } UNION { resource:Q1268232 property:Q528892 ?y } UNION { resource:Q468785 property:Q528892 ?z } UNION { resource:Q468785 property:Q528892 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q28640 }
film director screenwriter designer
1 occupations and 2 professions
['Bigas Luna', 'occupation', {'concept': 'occupation'}] ['Bigas Luna', 'occupation', {'concept': 'profession'}] ['Dušan Vukotić', 'occupation', {'concept': 'occupation'}] ['Dušan Vukotić', 'occupation', {'concept': 'profession'}] ['Bigas Luna', 'occupation', {'concept': 'occupation'}] ['Bigas Luna', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Bigas_Luna property:occupation ?z } UNION { resource:Bigas_Luna property:occupation ?y } UNION { resource:Dušan_Vukotić property:occupation ?z } UNION { resource:Dušan_Vukotić property:occupation ?y } UNION { resource:Bigas_Luna property:occupation ?z } UNION { resource:Bigas_Luna property:occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:profession }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q5248733
P608
Q1656682 Q2668072 Q502895
USER
Which people were presented at around the same number of events and collections as Manuel Ocampo ?
(c(Q502895),P608,c(Q1656682)|c(Q2668072))
action approx
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q2668072
action count
action filter_multi_types
action find
entity Q5248733
relation P608
type Q1656682
type Q2668072
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Q5248733 property:P608 ?f . { { ?f rdf:type ontology:Q1656682 } UNION { ?f rdf:type ontology:Q2668072 } } } } . FILTER ( ?e = ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?r WHERE { VALUES ( ?u ) { ( ontology:Q2668072 ) ( ontology:Q1656682 ) } . ?j rdf:type ?u } GROUP BY ?r } }
Manuel Ocampo
action approx
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type collection
action count
action filter_multi_types
action find
entity Manuel Ocampo
relation exhibition history
type event
type collection
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'collection'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Manuel_Ocampo property:exhibition_history ?f . { { ?f rdf:type ontology:event } UNION { ?f rdf:type ontology:collection } } } } . FILTER ( ?e = ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?r WHERE { VALUES ( ?u ) { ( ontology:collection ) ( ontology:event ) } . ?j rdf:type ?u } GROUP BY ?r } }
[]
event collection common name
Q5040332 Q55192 Q3289592
SYSTEM
Carl Holty, Gertrude Abercrombie, Moniek Toebosch
Q70006 Q17314881 Q17455385 Q15734263 Q15734265 Q6196481 Q4945678 Q16004451 Q4648360 Q7649008 Q16858002 Q15991813 Q6990118 Q16062545 Q5671224 Q17625628 Q16005428 Q27505608 Q5248733 Q2824894 Q15734237 Q2965423 Q5040332 Q6687160 Q3289592 Q20888837 Q22815085 Q5375139 Q9015308 Q805807 Q16080418 Q16121375 Q15873898 Q55192 Q3335569 Q16968866
(c(Q502895),P608,c(Q1656682)|c(Q2668072))
action approx
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q2668072
action count
action filter_multi_types
action find
entity Q5248733
relation P608
type Q1656682
type Q2668072
[ANSWERS] were presented at around the same number of events and collections as Manuel Ocampo
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Q5248733 property:P608 ?f . { { ?f rdf:type ontology:Q1656682 } UNION { ?f rdf:type ontology:Q2668072 } } } } . FILTER ( ?e = ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?r WHERE { VALUES ( ?u ) { ( ontology:Q2668072 ) ( ontology:Q1656682 ) } . ?j rdf:type ?u } GROUP BY ?r } }
Lotte Jacobi René Izaure Jerry Cooke Johanna Bleuland van Oordt Adri Bleuland van Oordt Jim Love Martha Edelheit Jennifer Bolande A. S. Baylinson Susie Bootja Bootja Napaltjarri Anne Mee Judie Bamber Nellie Mae Rowe Alice Havers Pablo Borges Delgado Deborah De Robertis Andrea Bowers Wolfgang Sellinger Manuel Ocampo Adolphe Péterelle Tony van Alphen Christian Lhopital Carl Holty Louis Ferstadt Moniek Toebosch Angélique Bègue Georges Violet Ena Swansea Juan Carlos Alom Balto Alyce Frank Judith Lowry Chrisje van der Willigen Gertrude Abercrombie Nancy Elizabeth Prophet Lydia Schouten
Carl Holty, Gertrude Abercrombie and Moniek Toebosch were presented at around the same number of events and collections as Manuel Ocampo
Carl Holty Gertrude Abercrombie Moniek Toebosch
action approx
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type collection
action count
action filter_multi_types
action find
entity Manuel Ocampo
relation exhibition history
type event
type collection
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'collection'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Manuel_Ocampo property:exhibition_history ?f . { { ?f rdf:type ontology:event } UNION { ?f rdf:type ontology:collection } } } } . FILTER ( ?e = ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?r WHERE { VALUES ( ?u ) { ( ontology:collection ) ( ontology:event ) } . ?j rdf:type ?u } GROUP BY ?r } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q16080418
P608
Q1656682 Q2668072 Q502895
USER
And how about Alyce Frank?
(c(Q502895),P608,c(Q1656682)|c(Q2668072))
action approx
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q2668072
action count
action filter_multi_types
action find
entity Q16080418
relation P608
type Q1656682
type Q2668072
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?u ) WHERE { { ?i property:P608 ?z . ?i rdf:type ontology:Q502895 . ?z rdf:type ontology:Q1656682 } UNION { ?i property:P608 ?z . ?z rdf:type ontology:Q2668072 . ?i rdf:type ontology:Q502895 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Q16080418 property:P608 ?x . { { ?x rdf:type ontology:Q1656682 } UNION { ?x rdf:type ontology:Q2668072 } } } } . FILTER ( ?u = ?b ) }
Alyce Frank
action approx
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type collection
action count
action filter_multi_types
action find
entity Alyce Frank
relation exhibition history
type event
type collection
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'collection'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?u ) WHERE { { ?i property:exhibition_history ?z . ?i rdf:type ontology:common_name . ?z rdf:type ontology:event } UNION { ?i property:exhibition_history ?z . ?z rdf:type ontology:collection . ?i rdf:type ontology:common_name } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Alyce_Frank property:exhibition_history ?x . { { ?x rdf:type ontology:event } UNION { ?x rdf:type ontology:collection } } } } . FILTER ( ?u = ?b ) }
[]
event collection common name
Q3289592 Q17455385 Q15873898
SYSTEM
Moniek Toebosch, Jerry Cooke, Chrisje van der Willigen
Q17314881 Q17455385 Q15734263 Q15734265 Q15991813 Q16062545 Q5671224 Q17625628 Q5248733 Q2824894 Q3289592 Q20888837 Q22815085 Q9015308 Q805807 Q16080418 Q15873898 Q3335569
(c(Q502895),P608,c(Q1656682)|c(Q2668072))
action approx
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q2668072
action count
action filter_multi_types
action find
entity Q16080418
relation P608
type Q1656682
type Q2668072
[ANSWERS]
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?u ) WHERE { { ?i property:P608 ?z . ?i rdf:type ontology:Q502895 . ?z rdf:type ontology:Q1656682 } UNION { ?i property:P608 ?z . ?z rdf:type ontology:Q2668072 . ?i rdf:type ontology:Q502895 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Q16080418 property:P608 ?x . { { ?x rdf:type ontology:Q1656682 } UNION { ?x rdf:type ontology:Q2668072 } } } } . FILTER ( ?u = ?b ) }
René Izaure Jerry Cooke Johanna Bleuland van Oordt Adri Bleuland van Oordt Judie Bamber Alice Havers Pablo Borges Delgado Deborah De Robertis Manuel Ocampo Adolphe Péterelle Moniek Toebosch Angélique Bègue Georges Violet Juan Carlos Alom Balto Alyce Frank Chrisje van der Willigen Nancy Elizabeth Prophet
Moniek Toebosch Jerry Cooke Chrisje van der Willigen
action approx
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type collection
action count
action filter_multi_types
action find
entity Alyce Frank
relation exhibition history
type event
type collection
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'collection'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?u ) WHERE { { ?i property:exhibition_history ?z . ?i rdf:type ontology:common_name . ?z rdf:type ontology:event } UNION { ?i property:exhibition_history ?z . ?z rdf:type ontology:collection . ?i rdf:type ontology:common_name } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Alyce_Frank property:exhibition_history ?x . { { ?x rdf:type ontology:event } UNION { ?x rdf:type ontology:collection } } } } . FILTER ( ?u = ?b ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3289592
P509
Q2057971
USER
How did that person die ?
(Q3289592,P509,c(Q2057971))
action filter_type
action find
entity Q3289592
relation P509
type Q2057971
['Q3289592', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q3289592 property:P509 ?t . ?t rdf:type ontology:Q2057971 }
Moniek Toebosch
action filter_type
action find
entity Moniek Toebosch
relation cause of death
type health problem
['Moniek Toebosch', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:Moniek_Toebosch property:cause_of_death ?t . ?t rdf:type ontology:health_problem }
[]
health problem
Clarification for simple ques.
Q3289592
SYSTEM
Did you mean Moniek Toebosch ?
Q3289592 Q17455385 Q15873898
(Q3289592,P509,c(Q2057971)) (Q17455385,P509,c(Q2057971)) (Q15873898,P509,c(Q2057971))
[ANSWER]
['Q3289592', 'P509', {'concept': 'Q2057971'}] ['Q17455385', 'P509', {'concept': 'Q2057971'}] ['Q15873898', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q3289592 property:P509 ?t . ?t rdf:type ontology:Q2057971 }
Moniek Toebosch Jerry Cooke Chrisje van der Willigen
Did you mean Moniek Toebosch ?
Moniek Toebosch
['Moniek Toebosch', 'cause of death', {'concept': 'health problem'}] ['Jerry Cooke', 'cause of death', {'concept': 'health problem'}] ['Chrisje van der Willigen', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:Moniek_Toebosch property:cause_of_death ?t . ?t rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3289592,P509,c(Q2057971))
['Q3289592', 'P509', {'concept': 'Q2057971'}]
['Moniek Toebosch', 'cause of death', {'concept': 'health problem'}]
[]
Q47912
SYSTEM
lung cancer
Q47912
(Q3289592,P509,c(Q2057971))
action filter_type
action find
entity Q3289592
relation P509
type Q2057971
That person died in [ANSWER]
['Q3289592', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q3289592 property:P509 ?t . ?t rdf:type ontology:Q2057971 }
lung cancer
That person died in lung cancer
lung cancer
action filter_type
action find
entity Moniek Toebosch
relation cause of death
type health problem
['Moniek Toebosch', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:Moniek_Toebosch property:cause_of_death ?t . ?t rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q47912
P1196
Q502895
USER
Which people died with that health problem as their reason ?
(c(Q502895),P1196,Q47912)
action filter_type
action find_reverse
entity Q47912
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', 'Q47912']
SELECT DISTINCT ?h WHERE { ?h property:P1196 resource:Q47912 . ?h rdf:type ontology:Q502895 }
lung cancer
action filter_type
action find_reverse
entity lung cancer
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'lung cancer']
SELECT DISTINCT ?h WHERE { ?h property:manner_of_death resource:lung_cancer . ?h rdf:type ontology:common_name }
[]
common name
Q549431 Q54547 Q307168
SYSTEM
Jorge Ubico, Sarah Palfrey Cooke, Abdul Aziz al-Hakim
Q6188392 Q549431 Q6109626 Q307168 Q54547 Q999968 Q441003
(c(Q502895),P1196,Q47912)
action filter_type
action find_reverse
entity Q47912
relation P1196
type Q502895
[ANSWERS] died with that health problem as their reason
[{'concept': 'Q502895'}, 'P1196', 'Q47912']
SELECT DISTINCT ?h WHERE { ?h property:P1196 resource:Q47912 . ?h rdf:type ontology:Q502895 }
Jesús Barrero Jorge Ubico Roberto Cairo Abdul Aziz al-Hakim Sarah Palfrey Cooke Buckwheat Zydeco Celia Sánchez
Jorge Ubico, Sarah Palfrey Cooke and Abdul Aziz al-Hakim died with that health problem as their reason
Jorge Ubico Sarah Palfrey Cooke Abdul Aziz al-Hakim
action filter_type
action find_reverse
entity lung cancer
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'lung cancer']
SELECT DISTINCT ?h WHERE { ?h property:manner_of_death resource:lung_cancer . ?h rdf:type ontology:common_name }
[]