Simple Question (Direct)
Simple Question
Q3876692
P57
Q502895
USER
Which person directed Nothing is as it seems ?
(Q3876692,P57,c(Q502895))
action filter_type
action find
entity Q3876692
relation P57
type Q502895
['Q3876692', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q3876692 property:P57 ?i . ?i rdf:type ontology:Q502895 }
Nothing is as it seems
action filter_type
action find
entity Nothing is as it seems
relation director
type common name
['Nothing is as it seems', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Nothing_is_as_it_seems property:director ?i . ?i rdf:type ontology:common_name }
[]
common name
Q25147
SYSTEM
Franco Battiato
Q25147
(Q3876692,P57,c(Q502895))
action filter_type
action find
entity Q3876692
relation P57
type Q502895
[ANSWER] directed Nothing is as it seems
['Q3876692', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q3876692 property:P57 ?i . ?i rdf:type ontology:Q502895 }
Franco Battiato
Franco Battiato directed Nothing is as it seems
Franco Battiato
action filter_type
action find
entity Nothing is as it seems
relation director
type common name
['Nothing is as it seems', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Nothing_is_as_it_seems property:director ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3876692
P58
Q502895
USER
Who was the screenwriter for that work of art ?
(Q25147,P58,c(Q502895))
action filter_type
action find
entity Q3876692
relation P58
type Q502895
['Q25147', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q3876692 property:P58 ?v . ?v rdf:type ontology:Q502895 }
Nothing is as it seems
action filter_type
action find
entity Nothing is as it seems
relation screenwriter
type common name
['Franco Battiato', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Nothing_is_as_it_seems property:screenwriter ?v . ?v rdf:type ontology:common_name }
[]
common name
Q2755363
SYSTEM
Manlio Sgalambro
Q2755363
(Q25147,P58,c(Q502895))
action filter_type
action find
entity Q3876692
relation P58
type Q502895
The screenwriter for that work of art was San [ANSWER]
['Q25147', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q3876692 property:P58 ?v . ?v rdf:type ontology:Q502895 }
Manlio Sgalambro
The screenwriter for that work of art was San Manlio Sgalambro
Manlio Sgalambro
action filter_type
action find
entity Nothing is as it seems
relation screenwriter
type common name
['Franco Battiato', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Nothing_is_as_it_seems property:screenwriter ?v . ?v rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2755363 Q560497 Q15918952
P27
Q15617994
USER
Is that person a citizen of Niedergeckler and Belogorka ?
(Q2755363,P27,Q560497) (Q2755363,P27,Q15918952)
action is_in
entity Q2755363
action intersection
action find_reverse
entity Q560497
relation P27
action find_reverse
entity Q15918952
relation P27
['Q2755363', 'P27', 'Q560497'] ['Q2755363', 'P27', 'Q15918952']
ASK WHERE { resource:Q2755363 property:P27 resource:Q15918952 . resource:Q2755363 property:P27 resource:Q560497 }
Manlio Sgalambro Niedergeckler Belogorka
action is_in
entity Manlio Sgalambro
action intersection
action find_reverse
entity Niedergeckler
relation country of citizenship
action find_reverse
entity Belogorka
relation country of citizenship
['Manlio Sgalambro', 'country of citizenship', 'Niedergeckler'] ['Manlio Sgalambro', 'country of citizenship', 'Belogorka']
ASK WHERE { resource:Manlio_Sgalambro property:country_of_citizenship resource:Belogorka . resource:Manlio_Sgalambro property:country_of_citizenship resource:Niedergeckler }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2755363,P27,Q560497) (Q2755363,P27,Q15918952)
action is_in
entity Q2755363
action intersection
action find_reverse
entity Q560497
relation P27
action find_reverse
entity Q15918952
relation P27
[ANSWER]
['Q2755363', 'P27', 'Q560497'] ['Q2755363', 'P27', 'Q15918952']
ASK WHERE { resource:Q2755363 property:P27 resource:Q15918952 . resource:Q2755363 property:P27 resource:Q560497 }
No
action is_in
entity Manlio Sgalambro
action intersection
action find_reverse
entity Niedergeckler
relation country of citizenship
action find_reverse
entity Belogorka
relation country of citizenship
['Manlio Sgalambro', 'country of citizenship', 'Niedergeckler'] ['Manlio Sgalambro', 'country of citizenship', 'Belogorka']
ASK WHERE { resource:Manlio_Sgalambro property:country_of_citizenship resource:Belogorka . resource:Manlio_Sgalambro property:country_of_citizenship resource:Niedergeckler }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q502895 Q7725634 Q2342494
USER
Which people appears as a character in exactly 5 literary works and collectables ?
(c(Q7725634)|c(Q2342494),P674,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P674
type Q502895
type Q2342494
value 5
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?q = 5 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } GROUP BY ?a } }
action equal
action union
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action find_reverse_tuple_counts
relation characters
type common name
type collectable
value 5
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?q = 5 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:literary_work ) ( ontology:collectable ) } } GROUP BY ?a } }
[]
common name literary work collectable
Q854177 Q47365
SYSTEM
Kay Scarpetta, Marie Antoinette
Q854177 Q47365
(c(Q7725634)|c(Q2342494),P674,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P674
type Q502895
type Q2342494
value 5
[ANSWERS] appear as a character in exactly 5 literary works and collectables
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?q = 5 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } GROUP BY ?a } }
Kay Scarpetta Marie Antoinette
Kay Scarpetta and Marie Antoinette appear as a character in exactly 5 literary works and collectables
Kay Scarpetta Marie Antoinette
action equal
action union
action find_reverse_tuple_counts
relation characters
type common name
type literary work
action find_reverse_tuple_counts
relation characters
type common name
type collectable
value 5
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?q = 5 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ?l . VALUES ( ?l ) { ( ontology:literary_work ) ( ontology:collectable ) } } GROUP BY ?a } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q854177 Q47365
P21
Q290
USER
Which sexes do those people have ?
(Q854177,P21,c(Q290)) (Q47365,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q854177', 'P21', {'concept': 'Q290'}] ['Q47365', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?f ) { ( resource:Q854177 ) ( resource:Q47365 ) } . ?f property:P21 ?k . ?k rdf:type ontology:Q290 }
Kay Scarpetta Marie Antoinette
action filter_type
action find
entity prev_answer
relation gender
type sex
['Kay Scarpetta', 'gender', {'concept': 'sex'}] ['Marie Antoinette', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?f ) { ( resource:Kay_Scarpetta ) ( resource:Marie_Antoinette ) } . ?f property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581072 Q6581072
SYSTEM
female
Q6581072 Q6581072
(Q854177,P21,c(Q290)) (Q47365,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people have a [ANSWER] and [ANSWER]
['Q854177', 'P21', {'concept': 'Q290'}] ['Q47365', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?f ) { ( resource:Q854177 ) ( resource:Q47365 ) } . ?f property:P21 ?k . ?k rdf:type ontology:Q290 }
female female
Those people have a female and female
female female
action filter_type
action find
entity prev_answer
relation gender
type sex
['Kay Scarpetta', 'gender', {'concept': 'sex'}] ['Marie Antoinette', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?f ) { ( resource:Kay_Scarpetta ) ( resource:Marie_Antoinette ) } . ?f property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q47365
P26
Q502895
USER
Who is married to Marie Antoinette ?
(Q47365,P26,c(Q502895))
action filter_type
action find
entity Q47365
relation P26
type Q502895
['Q47365', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q47365 property:P26 ?n }
Marie Antoinette
action filter_type
action find
entity Marie Antoinette
relation spouse
type common name
['Marie Antoinette', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Marie_Antoinette property:spouse ?n }
[]
common name
Q7732
SYSTEM
Louis XVI of France
Q7732
(Q47365,P26,c(Q502895))
action filter_type
action find
entity Q47365
relation P26
type Q502895
France [ANSWER] is married to Marie Antoinette
['Q47365', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q47365 property:P26 ?n }
Louis XVI of France
France Louis XVI of France is married to Marie Antoinette
Louis XVI of France
action filter_type
action find
entity Marie Antoinette
relation spouse
type common name
['Marie Antoinette', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Marie_Antoinette property:spouse ?n }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1392056
Q502895
USER
And what about Fahda bint Asi Al Shuraim?
(Q1392056,P26,c(Q502895))
action filter_type
action find
entity Q1392056
relation P26
type Q502895
['Q1392056', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q1392056 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Fahda bint Asi Al Shuraim
action filter_type
action find
entity Fahda bint Asi Al Shuraim
relation spouse
type common name
['Fahda bint Asi Al Shuraim', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Fahda_bint_Asi_Al_Shuraim property:spouse ?k . ?k rdf:type ontology:common_name }
[]
common name
Q151509
SYSTEM
Ibn Saud
Q151509
(Q1392056,P26,c(Q502895))
action filter_type
action find
entity Q1392056
relation P26
type Q502895
[ANSWER]
['Q1392056', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q1392056 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Ibn Saud
Ibn Saud
action filter_type
action find
entity Fahda bint Asi Al Shuraim
relation spouse
type common name
['Fahda bint Asi Al Shuraim', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Fahda_bint_Asi_Al_Shuraim property:spouse ?k . ?k rdf:type ontology:common_name }
[]