Simple Question (Direct)
Simple Question
Q1034017
P26
Q502895
USER
Which person is married to Margaret of Valois, Countess of Blois ?
(Q1034017,P26,c(Q502895))
action filter_type
action find
entity Q1034017
relation P26
type Q502895
['Q1034017', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1034017 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Margaret of Valois, Countess of Blois
action filter_type
action find
entity Margaret of Valois, Countess of Blois
relation spouse
type common name
['Margaret of Valois, Countess of Blois', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Margaret_of_Valois,_Countess_of_Blois property:spouse ?e . ?e rdf:type ontology:common_name }
[]
common name
Q723663
SYSTEM
Guy I, Count of Blois
Q723663
(Q1034017,P26,c(Q502895))
action filter_type
action find
entity Q1034017
relation P26
type Q502895
[ANSWER] is married to Margaret of Valois, Countess of Blois
['Q1034017', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1034017 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Guy I, Count of Blois
Guy I, Count of Blois is married to Margaret of Valois, Countess of Blois
Guy I, Count of Blois
action filter_type
action find
entity Margaret of Valois, Countess of Blois
relation spouse
type common name
['Margaret of Valois, Countess of Blois', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Margaret_of_Valois,_Countess_of_Blois property:spouse ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1034017
P40
Q502895
USER
Which people are a successors of Margaret of Valois, Countess of Blois ?
(Q1034017,P40,c(Q502895))
action filter_type
action find
entity Q1034017
relation P40
type Q502895
['Q1034017', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q1034017 property:P40 ?z . ?z rdf:type ontology:Q502895 }
Margaret of Valois, Countess of Blois
action filter_type
action find
entity Margaret of Valois, Countess of Blois
relation child
type common name
['Margaret of Valois, Countess of Blois', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Margaret_of_Valois,_Countess_of_Blois property:child ?z . ?z rdf:type ontology:common_name }
[]
common name
Q330697 Q3292886 Q454063
SYSTEM
Louis II, Count of Blois, Mary of Chatillon, Charles I, Duke of Brittany
Q330697 Q3292886 Q454063
(Q1034017,P40,c(Q502895))
action filter_type
action find
entity Q1034017
relation P40
type Q502895
[ANSWERS]
['Q1034017', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q1034017 property:P40 ?z . ?z rdf:type ontology:Q502895 }
Louis II, Count of Blois Mary of Chatillon Charles I, Duke of Brittany
Louis II, Count of Blois, Mary of Chatillon and Charles I, Duke of Brittany are a successors of Margaret of Valois, Countess of Blois
Louis II, Count of Blois Mary of Chatillon Charles I, Duke of Brittany
action filter_type
action find
entity Margaret of Valois, Countess of Blois
relation child
type common name
['Margaret of Valois, Countess of Blois', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Margaret_of_Valois,_Countess_of_Blois property:child ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2407332
Q502895
USER
And also tell me about Teun Buijs?
(Q2407332,P40,c(Q502895))
action filter_type
action find
entity Q2407332
relation P40
type Q502895
['Q2407332', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q2407332 property:P40 ?d }
Teun Buijs
action filter_type
action find
entity Teun Buijs
relation child
type common name
['Teun Buijs', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:Teun_Buijs property:child ?d }
[]
common name
Q513667
SYSTEM
Anne Buijs
Q513667
(Q2407332,P40,c(Q502895))
action filter_type
action find
entity Q2407332
relation P40
type Q502895
[ANSWER]
['Q2407332', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q2407332 property:P40 ?d }
Anne Buijs
Anne Buijs
action filter_type
action find
entity Teun Buijs
relation child
type common name
['Teun Buijs', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:Teun_Buijs property:child ?d }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P248
Q223393 Q191067 Q502895
USER
Which people have been stated in min number of literary genres and articles ?
(c(Q502895),P248,c(Q223393)|c(Q191067))
action argmin
action union
action find_tuple_counts
relation P248
type Q502895
type Q223393
action find_tuple_counts
relation P248
type Q502895
type Q191067
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q223393'}, {'concept': 'Q191067'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?y ) { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:Q191067 ) ( ontology:Q223393 ) } . ?m rdf:type ?j } GROUP BY ?q } } . { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?r ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q223393 ) ( ontology:Q191067 ) } } GROUP BY ?i } . FILTER ( ?r = ?y ) }
action argmin
action union
action find_tuple_counts
relation stated in
type common name
type literary genre
action find_tuple_counts
relation stated in
type common name
type article
[{'concept': 'common name'}, 'stated in', [{'concept': 'literary genre'}, {'concept': 'article'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?y ) { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:article ) ( ontology:literary_genre ) } . ?m rdf:type ?j } GROUP BY ?q } } . { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?r ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:literary_genre ) ( ontology:article ) } } GROUP BY ?i } . FILTER ( ?r = ?y ) }
[]
literary genre article common name
Q6251897 Q6257923 Q15456236
SYSTEM
John Parker, John Simpson, William Williams
Q16859599 Q6130307 Q6255166 Q6255164 Q5239877 Q5239876 Q5144961 Q16210814 Q7342716 Q7342713 Q5239896 Q5239895 Q2699786 Q18529684 Q6237327 Q6237320 Q6237321 Q6237323 Q8017696 Q5232852 Q16859511 Q17402519 Q6257923 Q6255435 Q6262996 Q6262991 Q15456236 Q6249889 Q6255181 Q6249883 Q6255184 Q18527481 Q6244753 Q861695 Q6236108 Q6262693 Q16730720 Q6236103 Q6242872 Q6260673 Q6260669 Q6236088 Q18546647 Q6236083 Q6236081 Q5240345 Q16065533 Q9069823 Q1626914 Q6145026 Q5606266 Q5606264 Q5606262 Q5606263 Q18546633 Q18546632 Q5606268 Q16849502 Q16244253 Q22936292 Q18530177 Q18810870 Q16195622 Q6249899 Q1879480 Q6258326 Q6246971 Q16859464 Q18810862 Q18810864 Q16106932 Q11035229 Q8019373 Q8019371 Q18530179 Q18527610 Q6260355 Q18534216 Q18534214 Q6130319 Q6260650 Q6260652 Q6260653 Q6249871 Q6260655 Q6249873 Q6249879 Q6221412 Q16060029 Q7351128 Q7351124 Q7351123 Q16908903 Q16863901 Q21511610 Q3528952 Q1776423 Q6228764 Q6228766 Q6246935 Q5232857 Q5232854 Q18546651 Q5232859 Q18529777 Q7795179 Q6257938 Q1916387 Q8018837 Q18527125 Q3116279 Q6145023 Q6145020 Q11979017 Q15999511 Q18530176 Q18530175 Q18530173 Q18385557 Q6249895 Q18530178 Q16848723 Q18810866 Q8004400 Q18530282 Q5537308 Q15990337 Q16886405 Q18530281 Q18530280 Q3703350 Q18338285 Q6242867 Q6242862 Q704916 Q6239285 Q18531059 Q18527375 Q16850547 Q6236099 Q18338267 Q16031260 Q18531060 Q16066831 Q6255420 Q16059754 Q11919459 Q18527305 Q18603564 Q6262713 Q6239287 Q6130325 Q6130320 Q5606270 Q5606272 Q5606274 Q5606277 Q18546628 Q17626521 Q18546621 Q18559712 Q18559713 Q6221420 Q16071955 Q5239912 Q6221426 Q6221428 Q14950004 Q17423413 Q7493391 Q8020388 Q6239263 Q6237345 Q8020387 Q8020385 Q15461577 Q16031816 Q6255407 Q18527054 Q6257940 Q5239881 Q17308862 Q5239884 Q8019900 Q8019902 Q16859222 Q5240337 Q6228730 Q15990069 Q6265189 Q16090838 Q18534834 Q18534833 Q18534831 Q4786783 Q4096102 Q16065305 Q16228915 Q15637844 Q4679001 Q6237308 Q6237302 Q8017685 Q8017687 Q8017683 Q8017682 Q5241199 Q6241395 Q5241193 Q5241194 Q6263006 Q6263007 Q15452052 Q6255417 Q16105132 Q6262977 Q6262978 Q18593210 Q5537317 Q6246952 Q5537315 Q6246950 Q526328 Q5537319 Q18527381 Q6242859 Q18527209 Q16027113 Q6242044 Q18166520 Q18546505 Q18530220 Q18526878 Q5239909 Q18546619 Q18546617 Q16105467 Q5239906 Q5144957 Q6236101 Q5144959 Q5239888 Q3703375 Q5090064 Q1459540 Q16857323 Q7342708 Q5239885 Q15982602 Q5233453 Q5233457 Q14951093 Q8020399 Q6239258 Q8020394 Q8020396 Q8020390 Q21515457 Q17385895 Q16466630 Q16031827 Q16857661 Q6255286 Q5241196 Q6262733 Q6262984 Q18530275 Q18530276 Q18530278 Q18530279 Q6244748 Q6470045 Q2778111 Q18546659 Q18546658 Q18546653 Q1101329 Q18546650 Q18546656 Q18546655 Q5240358 Q26707638 Q5601513 Q16142930 Q6237318 Q17021417 Q6130341 Q5606257 Q17364116 Q4955213 Q5606258 Q16067356 Q15782600 Q18530180 Q18530181 Q6263011 Q10363011 Q6257915 Q6145009 Q6145007 Q6145001 Q5233462 Q5233466 Q333770 Q6251897 Q9311159 Q6242832 Q5537322 Q5537324 Q5537325 Q6246965 Q6246963 Q6246961 Q16066618 Q8020402 Q8019368 Q6262709 Q6262704 Q6262700 Q6242842 Q16225515 Q18527351 Q5241210 Q15990004 Q16065563 Q968659 Q18546195
(c(Q502895),P248,c(Q223393)|c(Q191067))
action argmin
action union
action find_tuple_counts
relation P248
type Q502895
type Q223393
action find_tuple_counts
relation P248
type Q502895
type Q191067
[ANSWERS] have been stated in min number of literary genres and articles
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q223393'}, {'concept': 'Q191067'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?y ) { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:Q191067 ) ( ontology:Q223393 ) } . ?m rdf:type ?j } GROUP BY ?q } } . { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?r ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q223393 ) ( ontology:Q191067 ) } } GROUP BY ?i } . FILTER ( ?r = ?y ) }
William Thompson James Brown John Roberts John Roberts David Smith David Smith Colin Campbell David Evans Robert Campbell Robert Campbell David Smith David Smith Colin Campbell David Davies John Hall John Hall John Hall John Hall William Robinson David Davies John Robinson Greg Smith John Simpson John Rogers John Ward John Ward William Williams John Murphy John Roberts John Murphy John Roberts Robert Williams John Lewis William Robinson John Gray John Walker John Kennedy John Gray John Kennedy John Thompson John Thompson John Gray John Williams John Gray John Gray David Thomas John Gray Robert Williams Greg Smith James Walker Greg Smith Greg Smith Greg Smith Greg Smith John Smith John Smith Greg Smith David Wilson John Martin Gilles De Haes John Brown John Robinson John Kennedy John Murphy Léonard Limousin John Smith John Martin John Parker John Robinson John Robinson David Evans John Carter William Thompson William Thompson John Brown John Smith John Taylor John Ward John Taylor James Brown John Thompson John Thompson John Thompson John Murphy John Thompson John Murphy John Murphy John Bell David Davies Robert Williams Robert Williams Robert Williams William Walker David Davies Dunja Lango George Brown Raud the Strong John Davies John Davies John Martin David Davies David Davies John Williams David Davies James Brown Thomas Williams John Simpson David Smith William Stewart John Jones Greg Smith James Walker James Walker John Martin William Robinson John Brown John Brown John Brown John Walker John Murphy John Brown John Walker John Robinson William Anderson John Randall Clarke George Brown James Walker John Walker John Clarke John Clarke David Thomas Borja Mendia John Kennedy John Kennedy Li Ruihuan John Hill William Brown John Murray John Martin John Gray Ethan Wragge John Murphy William Brown James Walker John Rogers James Brown Epimenides John Martin William Thompson John Walker John Hill James Brown James Brown Greg Smith Greg Smith Greg Smith Greg Smith John Smith Colin Campbell John Roland Phillips David Christopher Davies David Lewis Davies John Bell John Murphy David Smith John Bell John Bell John Hill James Brown Shelby Harris William Williams John Hill John Hall William Williams William Williams John Martin William Walker John Rogers John Hill John Simpson David Smith Colin Campbell David Smith William Walker William Walker Robert Williams David Thomas John Davies John Jackson John Young John Kennedy John Davis John Davis John Davis John Bell James Brown George Brown John Wilson David Smith Adam Dunkels John Hall John Hall William Robinson William Robinson William Robinson William Robinson David Wilson John Jackson David Wilson David Wilson John Ward John Ward John Rogers John Rogers John Kennedy John Ward John Ward John Davies George Brown John Martin George Brown John Martin Dairis Bertāns George Brown John Murray John Kennedy John Lewis John Roberts John Jones William Thompson John Campbell John Campbell John Evans David Smith John Phillips John Phillips John Rogers David Smith Colin Campbell John Gray Colin Campbell David Smith David Wilson George Brown John Thompson John Evans Robert Campbell David Smith John Young David Evans David Evans John Jackson William Williams John Hill William Williams William Williams William Williams Rolando Valdès-Blain David Evans John Bell John Rogers John Hall John Robinson David Wilson John Walker John Ward John Clarke John Clarke John Clarke John Clarke John Lewis Lady Colin Campbell Greg Smith John Williams John Williams John Williams John Rogers John Williams John Williams John Williams David Thomas Delobel Colin Campbell John Murphy John Hall John Walker James Brown Greg Smith John Davies Brady Sallee Greg Smith John Walker John Hill John Brown John Wright Brown John Ward Risques Pereira John Simpson James Walker James Walker James Walker David Evans David Evans Victorinus John Parker Robert Williams John Kennedy George Brown George Brown George Brown John Martin John Martin John Martin John Ward William Williams William Thompson John Walker John Walker John Walker John Kennedy John Simpson John Moore David Wilson John Gray William Thompson Carsten Tank George Smith
John Parker, John Simpson and William Williams have been stated in min number of literary genres and articles
John Parker John Simpson William Williams
action argmin
action union
action find_tuple_counts
relation stated in
type common name
type literary genre
action find_tuple_counts
relation stated in
type common name
type article
[{'concept': 'common name'}, 'stated in', [{'concept': 'literary genre'}, {'concept': 'article'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?y ) { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:article ) ( ontology:literary_genre ) } . ?m rdf:type ?j } GROUP BY ?q } } . { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?r ) WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:literary_genre ) ( ontology:article ) } } GROUP BY ?i } . FILTER ( ?r = ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atleast 3703 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3703
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:P1303 ?h . ?h rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?j >= 3703 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3703
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:instrument ?h . ?h rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?j >= 3703 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3703
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:P1303 ?h . ?h rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?j >= 3703 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3703
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:instrument ?h . ?h rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?j >= 3703 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q502895 Q5398426 Q1001378
USER
How many people are around 1 television series and cinematic techniques adapted from ?
(c(Q5398426)|c(Q1001378),P144,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q5398426
action find_reverse_tuple_counts
relation P144
type Q502895
type Q1001378
value 1
[[{'concept': 'Q5398426'}, {'concept': 'Q1001378'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?r ) WHERE { VALUES ( ?w ) { ( ontology:Q5398426 ) ( ontology:Q1001378 ) } . ?l rdf:type ?w } GROUP BY ?c } . FILTER ( ?r = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation based on
type common name
type television series
action find_reverse_tuple_counts
relation based on
type common name
type cinematic technique
value 1
[[{'concept': 'television series'}, {'concept': 'cinematic technique'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?r ) WHERE { VALUES ( ?w ) { ( ontology:television_series ) ( ontology:cinematic_technique ) } . ?l rdf:type ?w } GROUP BY ?c } . FILTER ( ?r = 1 ) }
[]
common name television series cinematic technique
SYSTEM
5
Q11413422 Q125970 Q5358877 Q11584822 Q7668479
(c(Q5398426)|c(Q1001378),P144,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q5398426
action find_reverse_tuple_counts
relation P144
type Q502895
type Q1001378
value 1
[ANSWER]
[[{'concept': 'Q5398426'}, {'concept': 'Q1001378'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?r ) WHERE { VALUES ( ?w ) { ( ontology:Q5398426 ) ( ontology:Q1001378 ) } . ?l rdf:type ?w } GROUP BY ?c } . FILTER ( ?r = 1 ) }
Yasumi Yoshizawa Keigo Higashino Jun Ikeido Ayumi Ishii T. Lewis
5
action count
action approx
action union
action find_reverse_tuple_counts
relation based on
type common name
type television series
action find_reverse_tuple_counts
relation based on
type common name
type cinematic technique
value 1
[[{'concept': 'television series'}, {'concept': 'cinematic technique'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?r ) WHERE { VALUES ( ?w ) { ( ontology:television_series ) ( ontology:cinematic_technique ) } . ?l rdf:type ?w } GROUP BY ?c } . FILTER ( ?r = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15456236
P106
Q12737077
USER
Which occupation is the profession of William Williams ?
(Q15456236,P106,c(Q12737077))
action filter_type
action find
entity Q15456236
relation P106
type Q12737077
['Q15456236', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q15456236 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
William Williams
action filter_type
action find
entity William Williams
relation occupation
type occupation
['William Williams', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:William_Williams property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q15456236,P106,c(Q12737077))
action filter_type
action find
entity Q15456236
relation P106
type Q12737077
The [ANSWER] is the profession of William Williams
['Q15456236', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q15456236 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
politician
The politician is the profession of William Williams
politician
action filter_type
action find
entity William Williams
relation occupation
type occupation
['William Williams', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:William_Williams property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q751501 Q15456236
P106
Q12737077
USER
Or Virgilio Expósito?
OR((Q15456236,P106,c(Q12737077)), (Q751501,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q15456236
relation P106
action find
entity Q751501
relation P106
type Q12737077
{'OR': [['Q15456236', 'P106', {'concept': 'Q12737077'}], ['Q751501', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q15456236 property:P106 ?d } UNION { resource:Q751501 property:P106 ?d } } . ?d rdf:type ontology:Q12737077 }
Virgilio Expósito William Williams
action filter_type
action union
action find
entity William Williams
relation occupation
action find
entity Virgilio Expósito
relation occupation
type occupation
{'OR': [['William Williams', 'occupation', {'concept': 'occupation'}], ['Virgilio Expósito', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?d WHERE { { { resource:William_Williams property:occupation ?d } UNION { resource:Virgilio_Expósito property:occupation ?d } } . ?d rdf:type ontology:occupation }
[]
occupation
Q82955 Q36834 Q486748
SYSTEM
politician, composer, pianist
Q82955 Q36834 Q486748
OR((Q15456236,P106,c(Q12737077)), (Q751501,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q15456236
relation P106
action find
entity Q751501
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q15456236', 'P106', {'concept': 'Q12737077'}], ['Q751501', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q15456236 property:P106 ?d } UNION { resource:Q751501 property:P106 ?d } } . ?d rdf:type ontology:Q12737077 }
politician composer pianist
politician composer pianist
action filter_type
action union
action find
entity William Williams
relation occupation
action find
entity Virgilio Expósito
relation occupation
type occupation
{'OR': [['William Williams', 'occupation', {'concept': 'occupation'}], ['Virgilio Expósito', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?d WHERE { { { resource:William_Williams property:occupation ?d } UNION { resource:Virgilio_Expósito property:occupation ?d } } . ?d rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q129119
P106
Q502895
USER
Do Ruslana have those occupations as his/her means of employment ?
(Q129119,P106,Q82955) (Q129119,P106,Q36834) (Q129119,P106,Q486748)
action is_in
entity prev_answer
action find
entity Q129119
relation P106
['Q129119', 'P106', 'Q82955'] ['Q129119', 'P106', 'Q36834'] ['Q129119', 'P106', 'Q486748']
ASK WHERE { VALUES ( ?b ) { ( resource:Q82955 ) ( resource:Q36834 ) ( resource:Q486748 ) } . resource:Q129119 property:P106 ?b }
Ruslana
action is_in
entity prev_answer
action find
entity Ruslana
relation occupation
['Ruslana', 'occupation', 'politician'] ['Ruslana', 'occupation', 'composer'] ['Ruslana', 'occupation', 'pianist']
ASK WHERE { VALUES ( ?b ) { ( resource:politician ) ( resource:composer ) ( resource:pianist ) } . resource:Ruslana property:occupation ?b }
[]
common name
SYSTEM
YES
(Q129119,P106,Q82955) (Q129119,P106,Q36834) (Q129119,P106,Q486748)
action is_in
entity prev_answer
action find
entity Q129119
relation P106
[ANSWER]
['Q129119', 'P106', 'Q82955'] ['Q129119', 'P106', 'Q36834'] ['Q129119', 'P106', 'Q486748']
ASK WHERE { VALUES ( ?b ) { ( resource:Q82955 ) ( resource:Q36834 ) ( resource:Q486748 ) } . resource:Q129119 property:P106 ?b }
Yes
action is_in
entity prev_answer
action find
entity Ruslana
relation occupation
['Ruslana', 'occupation', 'politician'] ['Ruslana', 'occupation', 'composer'] ['Ruslana', 'occupation', 'pianist']
ASK WHERE { VALUES ( ?b ) { ( resource:politician ) ( resource:composer ) ( resource:pianist ) } . resource:Ruslana property:occupation ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q513667 Q4931648
P54
Q12973014
USER
How many sports teams are Anne Buijs or Bob Allen a member of ?
(Q513667,P54,c(Q12973014)) (Q4931648,P54,c(Q12973014))
action count
action union
action filter_type
action find
entity Q513667
relation P54
type Q12973014
action filter_type
action find
entity Q4931648
relation P54
type Q12973014
['Q513667', 'P54', {'concept': 'Q12973014'}] ['Q4931648', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { VALUES ( ?g ) { ( resource:Q513667 ) ( resource:Q4931648 ) } . ?g property:P54 ?j }
Anne Buijs Bob Allen
action count
action union
action filter_type
action find
entity Anne Buijs
relation member of sports team
type sports team
action filter_type
action find
entity Bob Allen
relation member of sports team
type sports team
['Anne Buijs', 'member of sports team', {'concept': 'sports team'}] ['Bob Allen', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { VALUES ( ?g ) { ( resource:Anne_Buijs ) ( resource:Bob_Allen ) } . ?g property:member_of_sports_team ?j }
[]
sports team
SYSTEM
3
Q650840 Q6868005 Q826751
(Q513667,P54,c(Q12973014)) (Q4931648,P54,c(Q12973014))
action count
action union
action filter_type
action find
entity Q513667
relation P54
type Q12973014
action filter_type
action find
entity Q4931648
relation P54
type Q12973014
[ANSWER]
['Q513667', 'P54', {'concept': 'Q12973014'}] ['Q4931648', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { VALUES ( ?g ) { ( resource:Q513667 ) ( resource:Q4931648 ) } . ?g property:P54 ?j }
Philadelphia Phillies Minneapolis Millers Cincinnati Reds
3
action count
action union
action filter_type
action find
entity Anne Buijs
relation member of sports team
type sports team
action filter_type
action find
entity Bob Allen
relation member of sports team
type sports team
['Anne Buijs', 'member of sports team', {'concept': 'sports team'}] ['Bob Allen', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { VALUES ( ?g ) { ( resource:Anne_Buijs ) ( resource:Bob_Allen ) } . ?g property:member_of_sports_team ?j }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36834 Q484876
P106
Q502895
USER
How many people have composer and chief executive officer as his/her means of employment ?
(c(Q502895),P106,Q36834) (c(Q502895),P106,Q484876)
action count
action intersection
action filter_type
action find_reverse
entity Q36834
relation P106
type Q502895
action filter_type
action find_reverse
entity Q484876
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q36834'] [{'concept': 'Q502895'}, 'P106', 'Q484876']
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:P106 resource:Q36834 . ?j rdf:type ontology:Q502895 . ?j rdf:type ontology:Q502895 . ?j property:P106 resource:Q484876 }
composer chief executive officer
action count
action intersection
action filter_type
action find_reverse
entity composer
relation occupation
type common name
action filter_type
action find_reverse
entity chief executive officer
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'composer'] [{'concept': 'common name'}, 'occupation', 'chief executive officer']
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:occupation resource:composer . ?j rdf:type ontology:common_name . ?j rdf:type ontology:common_name . ?j property:occupation resource:chief_executive_officer }
[]
common name
SYSTEM
8
Q6794873 Q18637457 Q6245124 Q3638496 Q7272355 Q20992177 Q7435919 Q20992149
(c(Q502895),P106,Q36834) (c(Q502895),P106,Q484876)
action count
action intersection
action filter_type
action find_reverse
entity Q36834
relation P106
type Q502895
action filter_type
action find_reverse
entity Q484876
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q36834'] [{'concept': 'Q502895'}, 'P106', 'Q484876']
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:P106 resource:Q36834 . ?j rdf:type ontology:Q502895 . ?j rdf:type ontology:Q502895 . ?j property:P106 resource:Q484876 }
Max Hole HiDE Kawada John Loeffler Doug Morris Quint Davis Floriano Cuoco Scott Austin Luca Cuoco
8
action count
action intersection
action filter_type
action find_reverse
entity composer
relation occupation
type common name
action filter_type
action find_reverse
entity chief executive officer
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'composer'] [{'concept': 'common name'}, 'occupation', 'chief executive officer']
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:occupation resource:composer . ?j rdf:type ontology:common_name . ?j rdf:type ontology:common_name . ?j property:occupation resource:chief_executive_officer }
[]