Simple Question (Direct)
Simple Question
Q14451
P734
Q82799
USER
Which name is associated with Maria Cristina of Savoy ?
(Q14451,P734,c(Q82799))
action filter_type
action find
entity Q14451
relation P734
type Q82799
['Q14451', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q14451 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Maria Cristina of Savoy
action filter_type
action find
entity Maria Cristina of Savoy
relation family name
type name
['Maria Cristina of Savoy', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Maria_Cristina_of_Savoy property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q23041587
SYSTEM
Savoia
Q23041587
(Q14451,P734,c(Q82799))
action filter_type
action find
entity Q14451
relation P734
type Q82799
Savoy [ANSWER] is associated with Maria Cristina of Savoy
['Q14451', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q14451 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Savoia
Savoy Savoia is associated with Maria Cristina of Savoy
Savoia
action filter_type
action find
entity Maria Cristina of Savoy
relation family name
type name
['Maria Cristina of Savoy', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Maria_Cristina_of_Savoy property:family_name ?f . ?f rdf:type ontology:name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q18530280
P248
Q11032 Q43229 Q502895
USER
How many people have been mentioned in more number of newspapers or organizations than John Clarke ?
(c(Q502895),P248,c(Q11032)|c(Q43229))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q43229
action count
action filter_multi_types
action find
entity Q18530280
relation P248
type Q11032
type Q43229
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?s ) WHERE { { ?y rdf:type ontology:Q502895 . ?r rdf:type ontology:Q11032 . ?y property:P248 ?r } UNION { ?y property:P248 ?r . ?y rdf:type ontology:Q502895 . ?r rdf:type ontology:Q43229 } } GROUP BY ?y } . FILTER ( ?s > ?j ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q18530280 property:P248 ?b . { { ?b rdf:type ontology:Q11032 } UNION { ?b rdf:type ontology:Q43229 } } } } }
John Clarke
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type organization
action count
action filter_multi_types
action find
entity John Clarke
relation stated in
type newspaper
type organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?s ) WHERE { { ?y rdf:type ontology:common_name . ?r rdf:type ontology:newspaper . ?y property:stated_in ?r } UNION { ?y property:stated_in ?r . ?y rdf:type ontology:common_name . ?r rdf:type ontology:organization } } GROUP BY ?y } . FILTER ( ?s > ?j ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:John_Clarke property:stated_in ?b . { { ?b rdf:type ontology:newspaper } UNION { ?b rdf:type ontology:organization } } } } }
[]
newspaper organization common name
SYSTEM
26
Q5232852 Q6249889 Q9069823 Q16106932 Q7351128 Q8004400 Q16031260 Q6262713 Q8020385 Q5239881 Q17308862 Q8019902 Q15637844 Q6263007 Q5144957 Q5233457 Q6239258 Q8020394 Q8020390 Q6257915 Q6251897 Q9311159 Q5537322 Q6246961 Q8020402 Q15990004
(c(Q502895),P248,c(Q11032)|c(Q43229))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q43229
action count
action filter_multi_types
action find
entity Q18530280
relation P248
type Q11032
type Q43229
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?s ) WHERE { { ?y rdf:type ontology:Q502895 . ?r rdf:type ontology:Q11032 . ?y property:P248 ?r } UNION { ?y property:P248 ?r . ?y rdf:type ontology:Q502895 . ?r rdf:type ontology:Q43229 } } GROUP BY ?y } . FILTER ( ?s > ?j ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q18530280 property:P248 ?b . { { ?b rdf:type ontology:Q11032 } UNION { ?b rdf:type ontology:Q43229 } } } } }
David Davies John Murphy Robert Williams David Evans Robert Williams William Anderson John Murphy John Walker William Williams David Smith Colin Campbell William Walker David Smith John Ward Colin Campbell David Evans John Hill William Williams William Williams John Simpson John Parker Robert Williams George Brown John Martin William Williams John Gray
26
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type organization
action count
action filter_multi_types
action find
entity John Clarke
relation stated in
type newspaper
type organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?s ) WHERE { { ?y rdf:type ontology:common_name . ?r rdf:type ontology:newspaper . ?y property:stated_in ?r } UNION { ?y property:stated_in ?r . ?y rdf:type ontology:common_name . ?r rdf:type ontology:organization } } GROUP BY ?y } . FILTER ( ?s > ?j ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:John_Clarke property:stated_in ?b . { { ?b rdf:type ontology:newspaper } UNION { ?b rdf:type ontology:organization } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q5239912
P248
Q11032 Q43229 Q502895
USER
And what about David Smith?
(c(Q502895),P248,c(Q11032)|c(Q43229))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q43229
action count
action filter_multi_types
action find
entity Q5239912
relation P248
type Q11032
type Q43229
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) ?z WHERE { { ?z property:P248 ?m . ?z rdf:type ontology:Q502895 . ?m rdf:type ontology:Q11032 } UNION { ?z property:P248 ?m . ?z rdf:type ontology:Q502895 . ?m rdf:type ontology:Q43229 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Q5239912 property:P248 ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q11032 ) ( ontology:Q43229 ) } } } } . FILTER ( ?f > ?g ) }
David Smith
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type organization
action count
action filter_multi_types
action find
entity David Smith
relation stated in
type newspaper
type organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) ?z WHERE { { ?z property:stated_in ?m . ?z rdf:type ontology:common_name . ?m rdf:type ontology:newspaper } UNION { ?z property:stated_in ?m . ?z rdf:type ontology:common_name . ?m rdf:type ontology:organization } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:David_Smith property:stated_in ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:newspaper ) ( ontology:organization ) } } } } . FILTER ( ?f > ?g ) }
[]
newspaper organization common name
SYSTEM
26
Q5232852 Q6249889 Q9069823 Q16106932 Q7351128 Q8004400 Q16031260 Q6262713 Q8020385 Q5239881 Q17308862 Q8019902 Q15637844 Q6263007 Q5144957 Q5233457 Q6239258 Q8020394 Q8020390 Q6257915 Q6251897 Q9311159 Q5537322 Q6246961 Q8020402 Q15990004
(c(Q502895),P248,c(Q11032)|c(Q43229))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q43229
action count
action filter_multi_types
action find
entity Q5239912
relation P248
type Q11032
type Q43229
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) ?z WHERE { { ?z property:P248 ?m . ?z rdf:type ontology:Q502895 . ?m rdf:type ontology:Q11032 } UNION { ?z property:P248 ?m . ?z rdf:type ontology:Q502895 . ?m rdf:type ontology:Q43229 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Q5239912 property:P248 ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q11032 ) ( ontology:Q43229 ) } } } } . FILTER ( ?f > ?g ) }
David Davies John Murphy Robert Williams David Evans Robert Williams William Anderson John Murphy John Walker William Williams David Smith Colin Campbell William Walker David Smith John Ward Colin Campbell David Evans John Hill William Williams William Williams John Simpson John Parker Robert Williams George Brown John Martin William Williams John Gray
26
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type organization
action count
action filter_multi_types
action find
entity David Smith
relation stated in
type newspaper
type organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) ?z WHERE { { ?z property:stated_in ?m . ?z rdf:type ontology:common_name . ?m rdf:type ontology:newspaper } UNION { ?z property:stated_in ?m . ?z rdf:type ontology:common_name . ?m rdf:type ontology:organization } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:David_Smith property:stated_in ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:newspaper ) ( ontology:organization ) } } } } . FILTER ( ?f > ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14451
P40
Q502895
USER
Who have Maria Cristina of Savoy as a child ?
(c(Q502895),P40,Q14451)
action filter_type
action find_reverse
entity Q14451
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q14451']
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q14451 . ?f rdf:type ontology:Q502895 }
Maria Cristina of Savoy
action filter_type
action find_reverse
entity Maria Cristina of Savoy
relation child
type common name
[{'concept': 'common name'}, 'child', 'Maria Cristina of Savoy']
SELECT DISTINCT ?f WHERE { ?f property:child resource:Maria_Cristina_of_Savoy . ?f rdf:type ontology:common_name }
[]
common name
Q175250 Q260505
SYSTEM
Victor Emmanuel I of Sardinia, Maria Theresa of Austria-Este
Q175250 Q260505
(c(Q502895),P40,Q14451)
action filter_type
action find_reverse
entity Q14451
relation P40
type Q502895
[ANSWERS] have Maria Cristina of Savoy as a child
[{'concept': 'Q502895'}, 'P40', 'Q14451']
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q14451 . ?f rdf:type ontology:Q502895 }
Victor Emmanuel I of Sardinia Maria Theresa of Austria-Este
Victor Emmanuel I of Sardinia and Maria Theresa of Austria-Este have Maria Cristina of Savoy as a child
Victor Emmanuel I of Sardinia Maria Theresa of Austria-Este
action filter_type
action find_reverse
entity Maria Cristina of Savoy
relation child
type common name
[{'concept': 'common name'}, 'child', 'Maria Cristina of Savoy']
SELECT DISTINCT ?f WHERE { ?f property:child resource:Maria_Cristina_of_Savoy . ?f rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q175250 Q260505
P40
Q502895
USER
Who have Victor Emmanuel I of Sardinia and Maria Theresa of Austria-Este as a child ?
(c(Q502895),P40,Q175250) (c(Q502895),P40,Q260505)
action union
action filter_type
action find_reverse
entity Q175250
relation P40
type Q502895
action filter_type
action find_reverse
entity Q260505
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q175250'] [{'concept': 'Q502895'}, 'P40', 'Q260505']
SELECT DISTINCT ?c WHERE { { ?c property:P40 resource:Q175250 . ?c rdf:type ontology:Q502895 } UNION { ?c rdf:type ontology:Q502895 . ?c property:P40 resource:Q260505 } }
Victor Emmanuel I of Sardinia Maria Theresa of Austria-Este
action union
action filter_type
action find_reverse
entity Victor Emmanuel I of Sardinia
relation child
type common name
action filter_type
action find_reverse
entity Maria Theresa of Austria-Este
relation child
type common name
[{'concept': 'common name'}, 'child', 'Victor Emmanuel I of Sardinia'] [{'concept': 'common name'}, 'child', 'Maria Theresa of Austria-Este']
SELECT DISTINCT ?c WHERE { { ?c property:child resource:Victor_Emmanuel_I_of_Sardinia . ?c rdf:type ontology:common_name } UNION { ?c rdf:type ontology:common_name . ?c property:child resource:Maria_Theresa_of_Austria-Este } }
[]
common name
Q328233 Q232172 Q312681
SYSTEM
Ferdinand, Duke of Breisgau, Maria Antonia Ferdinanda of Spain, Victor Amadeus III of Sardinia
Q232172 Q312681 Q328233 Q237663
(c(Q502895),P40,Q175250) (c(Q502895),P40,Q260505)
action union
action filter_type
action find_reverse
entity Q175250
relation P40
type Q502895
action filter_type
action find_reverse
entity Q260505
relation P40
type Q502895
[ANSWERS] have Victor Emmanuel I of Sardinia and Maria Theresa of Austria-Este as a child
[{'concept': 'Q502895'}, 'P40', 'Q175250'] [{'concept': 'Q502895'}, 'P40', 'Q260505']
SELECT DISTINCT ?c WHERE { { ?c property:P40 resource:Q175250 . ?c rdf:type ontology:Q502895 } UNION { ?c rdf:type ontology:Q502895 . ?c property:P40 resource:Q260505 } }
Maria Antonia Ferdinanda of Spain Victor Amadeus III of Sardinia Ferdinand, Duke of Breisgau Maria Beatrice d'Este, Duchess of Massa
Ferdinand, Duke of Breisgau, Maria Antonia Ferdinanda of Spain and Victor Amadeus III of Sardinia have Victor Emmanuel I of Sardinia and Maria Theresa of Austria-Este as a child
Ferdinand, Duke of Breisgau Maria Antonia Ferdinanda of Spain Victor Amadeus III of Sardinia
action union
action filter_type
action find_reverse
entity Victor Emmanuel I of Sardinia
relation child
type common name
action filter_type
action find_reverse
entity Maria Theresa of Austria-Este
relation child
type common name
[{'concept': 'common name'}, 'child', 'Victor Emmanuel I of Sardinia'] [{'concept': 'common name'}, 'child', 'Maria Theresa of Austria-Este']
SELECT DISTINCT ?c WHERE { { ?c property:child resource:Victor_Emmanuel_I_of_Sardinia . ?c rdf:type ontology:common_name } UNION { ?c rdf:type ontology:common_name . ?c property:child resource:Maria_Theresa_of_Austria-Este } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q232172
P9
Q502895
USER
Which people had that one as sister ?
(c(Q502895),P9,Q232172)
action filter_type
action find_reverse
entity Q232172
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q232172']
SELECT DISTINCT ?a WHERE { ?a property:P9 resource:Q232172 . ?a rdf:type ontology:Q502895 }
Maria Antonia Ferdinanda of Spain
action filter_type
action find_reverse
entity Maria Antonia Ferdinanda of Spain
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Maria Antonia Ferdinanda of Spain']
SELECT DISTINCT ?a WHERE { ?a property:sister resource:Maria_Antonia_Ferdinanda_of_Spain . ?a rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q312681
SYSTEM
Did you mean Victor Amadeus III of Sardinia ?
Q328233 Q232172 Q312681
(c(Q502895),P9,Q328233) (c(Q502895),P9,Q232172) (c(Q502895),P9,Q312681)
[ANSWER]
[{'concept': 'Q502895'}, 'P9', 'Q328233'] [{'concept': 'Q502895'}, 'P9', 'Q232172'] [{'concept': 'Q502895'}, 'P9', 'Q312681']
SELECT DISTINCT ?a WHERE { ?a property:P9 resource:Q232172 . ?a rdf:type ontology:Q502895 }
Ferdinand, Duke of Breisgau Maria Antonia Ferdinanda of Spain Victor Amadeus III of Sardinia
Did you mean Victor Amadeus III of Sardinia ?
Victor Amadeus III of Sardinia
[{'concept': 'common name'}, 'sister', 'Ferdinand, Duke of Breisgau'] [{'concept': 'common name'}, 'sister', 'Maria Antonia Ferdinanda of Spain'] [{'concept': 'common name'}, 'sister', 'Victor Amadeus III of Sardinia']
SELECT DISTINCT ?a WHERE { ?a property:sister resource:Maria_Antonia_Ferdinanda_of_Spain . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Maria Antonia Ferdinanda of Spain. Could you tell me the answer for that?
(c(Q502895),P9,Q232172)
Q232172
[{'concept': 'Q502895'}, 'P9', 'Q232172']
[{'concept': 'common name'}, 'sister', 'Maria Antonia Ferdinanda of Spain']
[]
Q36234 Q2343300 Q212457
SYSTEM
Charles III of Spain, Infante Luis, Count of Chinchón, Louis I of Spain
Q230887 Q5858359 Q212457 Q2343300 Q232132 Q223293 Q36234 Q193157
(c(Q502895),P9,Q232172)
action filter_type
action find_reverse
entity Q232172
relation P9
type Q502895
[ANSWERS] had that one as sister
[{'concept': 'Q502895'}, 'P9', 'Q232172']
SELECT DISTINCT ?a WHERE { ?a property:P9 resource:Q232172 . ?a rdf:type ontology:Q502895 }
Mariana Victoria of Spain Infante Philip Peter Gabriel of Spain Louis I of Spain Infante Luis, Count of Chinchón Infanta Maria Teresa Rafaela of Spain Philip, Duke of Parma Charles III of Spain Ferdinand VI of Spain
Charles III of Spain, Infante Luis, Count of Chinchón and Louis I of Spain had that one as sister
Charles III of Spain Infante Luis, Count of Chinchón Louis I of Spain
action filter_type
action find_reverse
entity Maria Antonia Ferdinanda of Spain
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Maria Antonia Ferdinanda of Spain']
SELECT DISTINCT ?a WHERE { ?a property:sister resource:Maria_Antonia_Ferdinanda_of_Spain . ?a rdf:type ontology:common_name }
[]