Simple Question (Direct)
Simple Question
Q4885658
P27
Q15617994
USER
Which administrative territory is Ben Fong-Torres an inhabitant of ?
(Q4885658,P27,c(Q15617994))
action filter_type
action find
entity Q4885658
relation P27
type Q15617994
['Q4885658', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q4885658 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Ben Fong-Torres
action filter_type
action find
entity Ben Fong-Torres
relation country of citizenship
type designation for an administrative territorial entity
['Ben Fong-Torres', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Ben_Fong-Torres property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q4885658,P27,c(Q15617994))
action filter_type
action find
entity Q4885658
relation P27
type Q15617994
[ANSWER] is Ben Fong-Torres an inhabitant of
['Q4885658', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q4885658 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
United States of America
United States of America is Ben Fong-Torres an inhabitant of
United States of America
action filter_type
action find
entity Ben Fong-Torres
relation country of citizenship
type designation for an administrative territorial entity
['Ben Fong-Torres', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Ben_Fong-Torres property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P159
Q476300
USER
Which competition has its HQ location at that administrative territory ?
(c(Q476300),P159,Q30)
action filter_type
action find_reverse
entity Q30
relation P159
type Q476300
[{'concept': 'Q476300'}, 'P159', 'Q30']
SELECT DISTINCT ?u WHERE { ?u property:P159 resource:Q30 . ?u rdf:type ontology:Q476300 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation headquarters location
type competition
[{'concept': 'competition'}, 'headquarters location', 'United States of America']
SELECT DISTINCT ?u WHERE { ?u property:headquarters_location resource:United_States_of_America . ?u rdf:type ontology:competition }
[]
competition
Q859497
SYSTEM
Miss America
Q859497
(c(Q476300),P159,Q30)
action filter_type
action find_reverse
entity Q30
relation P159
type Q476300
[ANSWER] has its HQ location at that administrative territory
[{'concept': 'Q476300'}, 'P159', 'Q30']
SELECT DISTINCT ?u WHERE { ?u property:P159 resource:Q30 . ?u rdf:type ontology:Q476300 }
Miss America
Miss America has its HQ location at that administrative territory
Miss America
action filter_type
action find_reverse
entity United States of America
relation headquarters location
type competition
[{'concept': 'competition'}, 'headquarters location', 'United States of America']
SELECT DISTINCT ?u WHERE { ?u property:headquarters_location resource:United_States_of_America . ?u rdf:type ontology:competition }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P674
Q502895 Q2342494 Q7725634
USER
Which people appear as a character in max number of collectables and literary works ?
(c(Q2342494)|c(Q7725634),P674,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?a ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?y rdf:type ?x } GROUP BY ?u } } . { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } GROUP BY ?p } . FILTER ( ?i = ?a ) }
action argmax
action union
action find_reverse_tuple_counts
relation characters
type common name
type collectable
action find_reverse_tuple_counts
relation characters
type common name
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?a ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?y rdf:type ?x } GROUP BY ?u } } . { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:literary_work ) ( ontology:collectable ) } } GROUP BY ?p } . FILTER ( ?i = ?a ) }
[]
common name collectable literary work
Q854177 Q47365
SYSTEM
Kay Scarpetta, Marie Antoinette
Q854177 Q47365
(c(Q2342494)|c(Q7725634),P674,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P674
type Q502895
type Q7725634
[ANSWERS] appear as a character in max number of collectables and literary works
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?a ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?y rdf:type ?x } GROUP BY ?u } } . { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } GROUP BY ?p } . FILTER ( ?i = ?a ) }
Kay Scarpetta Marie Antoinette
Kay Scarpetta and Marie Antoinette appear as a character in max number of collectables and literary works
Kay Scarpetta Marie Antoinette
action argmax
action union
action find_reverse_tuple_counts
relation characters
type common name
type collectable
action find_reverse_tuple_counts
relation characters
type common name
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?a ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?y rdf:type ?x } GROUP BY ?u } } . { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?i ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:literary_work ) ( ontology:collectable ) } } GROUP BY ?p } . FILTER ( ?i = ?a ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1658721 Q4885658
P106
Q12737077
USER
Which occupations are the professions of Ben Fong-Torres or Olof Johan Södermark ?
OR((Q4885658,P106,c(Q12737077)), (Q1658721,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4885658
relation P106
action find
entity Q1658721
relation P106
type Q12737077
{'OR': [['Q4885658', 'P106', {'concept': 'Q12737077'}], ['Q1658721', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { ?f property:P106 ?y . VALUES ( ?f ) { ( resource:Q4885658 ) ( resource:Q1658721 ) } } . ?y rdf:type ontology:Q12737077 }
Olof Johan Södermark Ben Fong-Torres
action filter_type
action union
action find
entity Ben Fong-Torres
relation occupation
action find
entity Olof Johan Södermark
relation occupation
type occupation
{'OR': [['Ben Fong-Torres', 'occupation', {'concept': 'occupation'}], ['Olof Johan Södermark', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { ?f property:occupation ?y . VALUES ( ?f ) { ( resource:Ben_Fong-Torres ) ( resource:Olof_Johan_Södermark ) } } . ?y rdf:type ontology:occupation }
[]
occupation
Q1930187 Q1281618 Q130857 Q189290 Q1028181 Q20669622 Q2722764
SYSTEM
journalist, sculptor, disc jockey, officer, painter, music journalist, radio personality
Q1930187 Q1281618 Q130857 Q189290 Q1028181 Q20669622 Q2722764
OR((Q4885658,P106,c(Q12737077)), (Q1658721,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4885658
relation P106
action find
entity Q1658721
relation P106
type Q12737077
The [ANSWERS] are the professions of Ben Fong-Torres or Olof Johan Södermark
{'OR': [['Q4885658', 'P106', {'concept': 'Q12737077'}], ['Q1658721', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { ?f property:P106 ?y . VALUES ( ?f ) { ( resource:Q4885658 ) ( resource:Q1658721 ) } } . ?y rdf:type ontology:Q12737077 }
journalist sculptor disc jockey officer painter music journalist radio personality
The journalist, sculptor, disc jockey, officer, painter, music journalist and radio personality are the professions of Ben Fong-Torres or Olof Johan Södermark
journalist sculptor disc jockey officer painter music journalist radio personality
action filter_type
action union
action find
entity Ben Fong-Torres
relation occupation
action find
entity Olof Johan Södermark
relation occupation
type occupation
{'OR': [['Ben Fong-Torres', 'occupation', {'concept': 'occupation'}], ['Olof Johan Södermark', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { ?f property:occupation ?y . VALUES ( ?f ) { ( resource:Ben_Fong-Torres ) ( resource:Olof_Johan_Södermark ) } } . ?y rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q4171754
P361
Q13406554 Q15900616 Q476300
USER
How many competitions are a component of greater number of sport competitions or event sequences than 2006 2. Divisjon ?
(c(Q476300),P361,c(Q13406554)|c(Q15900616))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q476300
type Q13406554
action find_tuple_counts
relation P361
type Q476300
type Q15900616
action count
action filter_multi_types
action find
entity Q4171754
relation P361
type Q13406554
type Q15900616
[{'concept': 'Q476300'}, 'P361', [{'concept': 'Q13406554'}, {'concept': 'Q15900616'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?o ) { ( ontology:Q13406554 ) ( ontology:Q15900616 ) } . ?t rdf:type ?o } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Q4171754 property:P361 ?q . { { ?q rdf:type ontology:Q13406554 } UNION { ?q rdf:type ontology:Q15900616 } } } } . FILTER ( ?p > ?x ) }
2006 2. Divisjon
action count
action greater
action union
action find_tuple_counts
relation part of
type competition
type sport competition
action find_tuple_counts
relation part of
type competition
type event sequence
action count
action filter_multi_types
action find
entity 2006 2. Divisjon
relation part of
type sport competition
type event sequence
[{'concept': 'competition'}, 'part of', [{'concept': 'sport competition'}, {'concept': 'event sequence'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?o ) { ( ontology:sport_competition ) ( ontology:event_sequence ) } . ?t rdf:type ?o } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:2006_2._Divisjon property:part_of ?q . { { ?q rdf:type ontology:sport_competition } UNION { ?q rdf:type ontology:event_sequence } } } } . FILTER ( ?p > ?x ) }
[]
sport competition event sequence competition
SYSTEM
61
Q2816498 Q3133342 Q20807758 Q20807757 Q3287514 Q3287512 Q2817754 Q2817757 Q16970036 Q287405 Q17513089 Q2818451 Q3652250 Q21246076 Q3065200 Q20806323 Q20806325 Q20806327 Q20806326 Q20806329 Q20806328 Q3423992 Q20805014 Q26709831 Q2814436 Q2814743 Q3216979 Q3216970 Q4624595 Q2806701 Q1804016 Q3107442 Q18353062 Q3423994 Q3423997 Q3423990 Q20806437 Q20806436 Q605429 Q20806324 Q2806714 Q20806543 Q2806794 Q4609618 Q20798918 Q20798596 Q20806542 Q20805040 Q20798320 Q1805466 Q4609621 Q20819896 Q2816684 Q4609633 Q20806541 Q3042458 Q1061407 Q20807802 Q2816693 Q2817181 Q2741390
(c(Q476300),P361,c(Q13406554)|c(Q15900616))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q476300
type Q13406554
action find_tuple_counts
relation P361
type Q476300
type Q15900616
action count
action filter_multi_types
action find
entity Q4171754
relation P361
type Q13406554
type Q15900616
[ANSWER]
[{'concept': 'Q476300'}, 'P361', [{'concept': 'Q13406554'}, {'concept': 'Q15900616'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?o ) { ( ontology:Q13406554 ) ( ontology:Q15900616 ) } . ?t rdf:type ?o } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Q4171754 property:P361 ?q . { { ?q rdf:type ontology:Q13406554 } UNION { ?q rdf:type ontology:Q15900616 } } } } . FILTER ( ?p > ?x ) }
2007 World Championships in Athletics – Men's 3000 metres steeplechase 2007 World Championships in Athletics – Women's heptathlon 2015 World Championships in Athletics – Women's hammer throw 2015 World Championships in Athletics – Men's hammer throw 2007 World Championships in Athletics – Men's Marathon 2007 World Championships in Athletics – Women's Marathon 2007 World Championships in Athletics – Women's 5000 metres 2007 World Championships in Athletics – Men's 5000 metres 2013 AFL finals series Miracle on Ice 2014 AFL finals series 2007 World Championships in Athletics – Women's 800 metres 2007 World Championships in Athletics – Men's shot put rowing event 2007 World Championships in Athletics – Women's pole vault 2015 World Championships in Athletics – Men's 10,000 metres 2015 World Championships in Athletics – Men's 5000 metres 2015 World Championships in Athletics – Men's discus throw 2015 World Championships in Athletics – Men's decathlon 2015 World Championships in Athletics – Women's discus throw 2015 World Championships in Athletics – Women's 400 metres hurdles 2007 World Championships in Athletics – Men's 4 × 100 metres relay 2015 World Championships in Athletics – Women's 100 metres hurdles 2016 AFL finals series 2007 World Championships in Athletics – Women's 200 metres 2007 World Championships in Athletics – Men's 20 kilometres walk 2007 World Championships in Athletics – Men's hammer throw 2007 World Championships in Athletics – Men's discus throw 2012 AFL finals series 2007 World Championships in Athletics – Women's 100 metres 2007 World Championships in Athletics – Men's 10,000 metres 2007 World Championships in Athletics – Men's javelin throw 2015 AFL finals series 2007 World Championships in Athletics – Women's 4 × 400 metres relay 2007 World Championships in Athletics – Men's 4 × 400 metres relay 2007 World Championships in Athletics – Women's 4 × 100 metres relay 2015 World Championships in Athletics – Women's 3000 metres steeplechase 2015 World Championships in Athletics – Men's 3000 metres steeplechase 2008 Six Nations Championship 2015 World Championships in Athletics – Men's 400 metres hurdles 2007 World Championships in Athletics – Men's 100 metres 2015 World Championships in Athletics – Women's 4 × 400 metres relay 2007 World Championships in Athletics – Women's 10,000 metres 2007 World Championships in Athletics – Men's high jump 2015 World Championships in Athletics – Women's 10,000 metres 2015 World Championships in Athletics – Women's 1500 metres 2015 World Championships in Athletics – Men's 4 × 400 metres relay 2015 World Championships in Athletics – Men's 110 metres hurdles 2015 World Championships in Athletics – Women's 1500 metres 2007 World Championships in Athletics – Men's 200 metres 2007 World Championships in Athletics – Men's long jump 2015 World Championships in Athletics – Women's shot put 2007 World Championships in Athletics – Women's 400 metres 2007 World Championships in Athletics – Women's high jump 2015 World Championships in Athletics – Women's 4 × 100 metres relay 2007 World Championships in Athletics – Men's decathlon 1994 Men's Hockey Champions Trophy 2015 World Championships in Athletics – Women's heptathlon 2007 World Championships in Athletics – Men's 400 metres 2007 World Championships in Athletics – Men's 50 kilometres walk 2007 World Championships in Athletics – Women's 20 kilometres walk
61
action count
action greater
action union
action find_tuple_counts
relation part of
type competition
type sport competition
action find_tuple_counts
relation part of
type competition
type event sequence
action count
action filter_multi_types
action find
entity 2006 2. Divisjon
relation part of
type sport competition
type event sequence
[{'concept': 'competition'}, 'part of', [{'concept': 'sport competition'}, {'concept': 'event sequence'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?o ) { ( ontology:sport_competition ) ( ontology:event_sequence ) } . ?t rdf:type ?o } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:2006_2._Divisjon property:part_of ?q . { { ?q rdf:type ontology:sport_competition } UNION { ?q rdf:type ontology:event_sequence } } } } . FILTER ( ?p > ?x ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q27548356 Q1281618
P682 P425
Q3249551
USER
Which processes have sculptor as the associated field of occupation or are a biological processes that 3-isopropylmalate dehydratase LEU1 YGL009C are involved in ?
OR((Q1281618,P425,c(Q3249551)), (Q27548356,P682,c(Q3249551)))
action filter_type
action union
action find
entity Q1281618
relation P425
action find
entity Q27548356
relation P682
type Q3249551
{'OR': [['Q1281618', 'P425', {'concept': 'Q3249551'}], ['Q27548356', 'P682', {'concept': 'Q3249551'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q3249551 . { { resource:Q27548356 property:P682 ?i } UNION { resource:Q1281618 property:P425 ?i } } }
3-isopropylmalate dehydratase LEU1 YGL009C sculptor
action filter_type
action union
action find
entity sculptor
relation field of this occupation
action find
entity 3-isopropylmalate dehydratase LEU1 YGL009C
relation biological process
type process
{'OR': [['sculptor', 'field of this occupation', {'concept': 'process'}], ['3-isopropylmalate dehydratase LEU1 YGL009C', 'biological process', {'concept': 'process'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:process . { { resource:3-isopropylmalate_dehydratase_LEU1_YGL009C property:biological_process ?i } UNION { resource:sculptor property:field_of_this_occupation ?i } } }
[]
process
Q11634 Q1057
SYSTEM
art of sculpture, metabolic process
Q11634 Q1057
OR((Q1281618,P425,c(Q3249551)), (Q27548356,P682,c(Q3249551)))
action filter_type
action union
action find
entity Q1281618
relation P425
action find
entity Q27548356
relation P682
type Q3249551
[ANSWERS] have sculptor as the associated field of occupation or are a biological processes that 3-isopropylmalate dehydratase LEU1 YGL009C are involved in
{'OR': [['Q1281618', 'P425', {'concept': 'Q3249551'}], ['Q27548356', 'P682', {'concept': 'Q3249551'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q3249551 . { { resource:Q27548356 property:P682 ?i } UNION { resource:Q1281618 property:P425 ?i } } }
art of sculpture metabolic process
Art of sculpture and metabolic process have sculptor as the associated field of occupation or are a biological processes that 3-isopropylmalate dehydratase LEU1 YGL009C are involved in
art of sculpture metabolic process
action filter_type
action union
action find
entity sculptor
relation field of this occupation
action find
entity 3-isopropylmalate dehydratase LEU1 YGL009C
relation biological process
type process
{'OR': [['sculptor', 'field of this occupation', {'concept': 'process'}], ['3-isopropylmalate dehydratase LEU1 YGL009C', 'biological process', {'concept': 'process'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:process . { { resource:3-isopropylmalate_dehydratase_LEU1_YGL009C property:biological_process ?i } UNION { resource:sculptor property:field_of_this_occupation ?i } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3658608
P921
Q12737077 Q732577 Q2342494
USER
How many occupations were the main subjects of greater number of publications and collectables 's work than caricaturist ?
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q3658608
relation P921
type Q732577
type Q2342494
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:P921 resource:Q3658608 . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:Q732577 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?x > ?f ) . { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?x ) WHERE { VALUES ( ?d ) { ( ontology:Q2342494 ) ( ontology:Q732577 ) } . ?t rdf:type ?d } GROUP BY ?g } }
caricaturist
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity caricaturist
relation main subject
type publication
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:main_subject resource:caricaturist . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:publication ) ( ontology:collectable ) } } } } . FILTER ( ?x > ?f ) . { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?x ) WHERE { VALUES ( ?d ) { ( ontology:collectable ) ( ontology:publication ) } . ?t rdf:type ?d } GROUP BY ?g } }
[]
occupation publication collectable
SYSTEM
24
Q39631 Q11631 Q774306 Q3809586 Q83307 Q4610556 Q18145518 Q2094335 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q29182 Q131524 Q14373094 Q18220900 Q16746569 Q15320003 Q16003605 Q49757 Q1238570 Q2259532
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q3658608
relation P921
type Q732577
type Q2342494
[ANSWER]
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:P921 resource:Q3658608 . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:Q732577 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?x > ?f ) . { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?x ) WHERE { VALUES ( ?d ) { ( ontology:Q2342494 ) ( ontology:Q732577 ) } . ?t rdf:type ?d } GROUP BY ?g } }
physician astronaut surgeon Wikipedian in Residence minister model Member of the New Zealand House of Representatives United States Attorney politician test pilot architect association football player ninja businessperson bishop entrepreneur rugby league player Member of the South Australian House of Assembly high school student migrant worker elementary school student poet political scientist cleric
24
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity caricaturist
relation main subject
type publication
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:main_subject resource:caricaturist . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:publication ) ( ontology:collectable ) } } } } . FILTER ( ?x > ?f ) . { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?x ) WHERE { VALUES ( ?d ) { ( ontology:collectable ) ( ontology:publication ) } . ?t rdf:type ?d } GROUP BY ?g } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q36180
P921
Q12737077 Q732577 Q2342494
USER
And also tell me about writer?
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q36180
relation P921
type Q732577
type Q2342494
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:P921 resource:Q36180 . { VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q732577 ) } . ?t rdf:type ?r } } } . FILTER ( ?e > ?i ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?m WHERE { { ?w property:P921 ?m . ?w rdf:type ontology:Q732577 . ?m rdf:type ontology:Q12737077 } UNION { ?w property:P921 ?m . ?w rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q12737077 } } GROUP BY ?m } }
writer
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity writer
relation main subject
type publication
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:main_subject resource:writer . { VALUES ( ?r ) { ( ontology:collectable ) ( ontology:publication ) } . ?t rdf:type ?r } } } . FILTER ( ?e > ?i ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?m WHERE { { ?w property:main_subject ?m . ?w rdf:type ontology:publication . ?m rdf:type ontology:occupation } UNION { ?w property:main_subject ?m . ?w rdf:type ontology:collectable . ?m rdf:type ontology:occupation } } GROUP BY ?m } }
[]
occupation publication collectable
SYSTEM
24
Q39631 Q11631 Q774306 Q3809586 Q83307 Q4610556 Q18145518 Q2094335 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q29182 Q131524 Q14373094 Q18220900 Q16746569 Q15320003 Q16003605 Q49757 Q1238570 Q2259532
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q36180
relation P921
type Q732577
type Q2342494
[ANSWER]
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:P921 resource:Q36180 . { VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q732577 ) } . ?t rdf:type ?r } } } . FILTER ( ?e > ?i ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?m WHERE { { ?w property:P921 ?m . ?w rdf:type ontology:Q732577 . ?m rdf:type ontology:Q12737077 } UNION { ?w property:P921 ?m . ?w rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q12737077 } } GROUP BY ?m } }
physician astronaut surgeon Wikipedian in Residence minister model Member of the New Zealand House of Representatives United States Attorney politician test pilot architect association football player ninja businessperson bishop entrepreneur rugby league player Member of the South Australian House of Assembly high school student migrant worker elementary school student poet political scientist cleric
24
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity writer
relation main subject
type publication
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:main_subject resource:writer . { VALUES ( ?r ) { ( ontology:collectable ) ( ontology:publication ) } . ?t rdf:type ?r } } } . FILTER ( ?e > ?i ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?m WHERE { { ?w property:main_subject ?m . ?w rdf:type ontology:publication . ?m rdf:type ontology:occupation } UNION { ?w property:main_subject ?m . ?w rdf:type ontology:collectable . ?m rdf:type ontology:occupation } } GROUP BY ?m } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1663054
P828
Q151885 Q3249551
USER
How many concepts are the causes of approximately the same number of processes as ingestion ?
(c(Q3249551),P828,c(Q151885))
action count
action approx
action find_reverse_tuple_counts
relation P828
type Q151885
type Q3249551
action count
action filter_type
action find
entity Q1663054
relation P828
type Q151885
[{'concept': 'Q3249551'}, 'P828', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:P828 ?s . ?s rdf:type ontology:Q151885 . ?r rdf:type ontology:Q3249551 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:Q1663054 property:P828 ?p . ?p rdf:type ontology:Q151885 } } . FILTER ( ?y = ?b ) }
ingestion
action count
action approx
action find_reverse_tuple_counts
relation has cause
type concept
type process
action count
action filter_type
action find
entity ingestion
relation has cause
type concept
[{'concept': 'process'}, 'has cause', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:has_cause ?s . ?s rdf:type ontology:concept . ?r rdf:type ontology:process } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:ingestion property:has_cause ?p . ?p rdf:type ontology:concept } } . FILTER ( ?y = ?b ) }
[]
concept process
SYSTEM
2
Q1663054 Q10294
(c(Q3249551),P828,c(Q151885))
action count
action approx
action find_reverse_tuple_counts
relation P828
type Q151885
type Q3249551
action count
action filter_type
action find
entity Q1663054
relation P828
type Q151885
[ANSWER]
[{'concept': 'Q3249551'}, 'P828', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:P828 ?s . ?s rdf:type ontology:Q151885 . ?r rdf:type ontology:Q3249551 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:Q1663054 property:P828 ?p . ?p rdf:type ontology:Q151885 } } . FILTER ( ?y = ?b ) }
ingestion poverty
2
action count
action approx
action find_reverse_tuple_counts
relation has cause
type concept
type process
action count
action filter_type
action find
entity ingestion
relation has cause
type concept
[{'concept': 'process'}, 'has cause', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:has_cause ?s . ?s rdf:type ontology:concept . ?r rdf:type ontology:process } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:ingestion property:has_cause ?p . ?p rdf:type ontology:concept } } . FILTER ( ?y = ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q10294
P828
Q151885 Q3249551
USER
And also tell me about poverty?
(c(Q3249551),P828,c(Q151885))
action count
action approx
action find_reverse_tuple_counts
relation P828
type Q151885
type Q3249551
action count
action filter_type
action find
entity Q10294
relation P828
type Q151885
[{'concept': 'Q3249551'}, 'P828', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:P828 ?b . ?e rdf:type ontology:Q3249551 . ?b rdf:type ontology:Q151885 } GROUP BY ?b } . FILTER ( ?c = ?s ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { ?f rdf:type ontology:Q151885 . resource:Q10294 property:P828 ?f } } }
poverty
action count
action approx
action find_reverse_tuple_counts
relation has cause
type concept
type process
action count
action filter_type
action find
entity poverty
relation has cause
type concept
[{'concept': 'process'}, 'has cause', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:has_cause ?b . ?e rdf:type ontology:process . ?b rdf:type ontology:concept } GROUP BY ?b } . FILTER ( ?c = ?s ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { ?f rdf:type ontology:concept . resource:poverty property:has_cause ?f } } }
[]
concept process
SYSTEM
2
Q1663054 Q10294
(c(Q3249551),P828,c(Q151885))
action count
action approx
action find_reverse_tuple_counts
relation P828
type Q151885
type Q3249551
action count
action filter_type
action find
entity Q10294
relation P828
type Q151885
[ANSWER]
[{'concept': 'Q3249551'}, 'P828', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:P828 ?b . ?e rdf:type ontology:Q3249551 . ?b rdf:type ontology:Q151885 } GROUP BY ?b } . FILTER ( ?c = ?s ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { ?f rdf:type ontology:Q151885 . resource:Q10294 property:P828 ?f } } }
ingestion poverty
2
action count
action approx
action find_reverse_tuple_counts
relation has cause
type concept
type process
action count
action filter_type
action find
entity poverty
relation has cause
type concept
[{'concept': 'process'}, 'has cause', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:has_cause ?b . ?e rdf:type ontology:process . ?b rdf:type ontology:concept } GROUP BY ?b } . FILTER ( ?c = ?s ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { ?f rdf:type ontology:concept . resource:poverty property:has_cause ?f } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P495
Q41291 Q223393
USER
How many rockets or literary genres have United States of America as their place of origin ?
(c(Q41291),P495,Q30) (c(Q223393),P495,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P495
type Q41291
action filter_type
action find_reverse
entity Q30
relation P495
type Q223393
[{'concept': 'Q41291'}, 'P495', 'Q30'] [{'concept': 'Q223393'}, 'P495', 'Q30']
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { ?g rdf:type ontology:Q41291 . ?g property:P495 resource:Q30 } UNION { ?g property:P495 resource:Q30 . ?g rdf:type ontology:Q223393 } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation country of origin
type rocket
action filter_type
action find_reverse
entity United States of America
relation country of origin
type literary genre
[{'concept': 'rocket'}, 'country of origin', 'United States of America'] [{'concept': 'literary genre'}, 'country of origin', 'United States of America']
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { ?g rdf:type ontology:rocket . ?g property:country_of_origin resource:United_States_of_America } UNION { ?g property:country_of_origin resource:United_States_of_America . ?g rdf:type ontology:literary_genre } }
[]
rocket literary genre
SYSTEM
51
Q4831111 Q1811803 Q1130590 Q21663230 Q1990119 Q2350912 Q7761282 Q1187405 Q1473449 Q27569630 Q26271832 Q20871165 Q1275853 Q4540275 Q2417179 Q4150354 Q27566273 Q26970897 Q907752 Q18760410 Q4651692 Q861662 Q2307397 Q14986 Q604839 Q671328 Q17049896 Q201032 Q931050 Q688263 Q7735752 Q22961841 Q27244964 Q4540312 Q3511886 Q2560006 Q6703997 Q1115055 Q3221761 Q7734561 Q1192304 Q1388208 Q1285723 Q468132 Q22911769 Q26849055 Q5641557 Q835698 Q5459327 Q16000543 Q3203926
(c(Q41291),P495,Q30) (c(Q223393),P495,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P495
type Q41291
action filter_type
action find_reverse
entity Q30
relation P495
type Q223393
[ANSWER]
[{'concept': 'Q41291'}, 'P495', 'Q30'] [{'concept': 'Q223393'}, 'P495', 'Q30']
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { ?g rdf:type ontology:Q41291 . ?g property:P495 resource:Q30 } UNION { ?g property:P495 resource:Q30 . ?g rdf:type ontology:Q223393 } }
Aye, and Gomorrah Lenore, the Cute Little Dead Girl The Cask of Amontillado Pan Satyrus Nike-Asp The Last Castle The Rocket LGM-25C Titan II PGM-19 Jupiter Alpha and Omega 20,000 Years of Fashion: The History of Costume and Personal Adornment Journalism in Tennessee William Wilson Arena The Brick Moon Grotto of the Dancing Deer giANTS Savage Sword of Conan LGM-118 Peacekeeper Absolution AGR-14 ZAP LGM-30 Minuteman I Have No Mouth, and I Must Scream ASM-135 ASAT Scout X-1 Nike-Apache A Boy and His Dog Taurus HGM-25A Titan I Amazing Fantasy The Gamits The Routledge Guide to Music Technology A Crowd of Shadows "Repent, Harlequin!" Said the Ticktockman Blind Alley Teddy Lunch at the Gotham Café Strange Tales The Toynbee Convector The Fly Juno I FGR-17 Viper Saturn The Bicentennial Man Mistborn: Secret History The Planners Half-Breed Tales to Astonish Flight on Titan 12:01 PM The Templar Legacy
51
action count
action union
action filter_type
action find_reverse
entity United States of America
relation country of origin
type rocket
action filter_type
action find_reverse
entity United States of America
relation country of origin
type literary genre
[{'concept': 'rocket'}, 'country of origin', 'United States of America'] [{'concept': 'literary genre'}, 'country of origin', 'United States of America']
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { ?g rdf:type ontology:rocket . ?g property:country_of_origin resource:United_States_of_America } UNION { ?g property:country_of_origin resource:United_States_of_America . ?g rdf:type ontology:literary_genre } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q47365
P9
Q502895
USER
Who had Marie Antoinette as their sibling ?
(c(Q502895),P9,Q47365)
action filter_type
action find_reverse
entity Q47365
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q47365']
SELECT DISTINCT ?n WHERE { ?n property:P9 resource:Q47365 . ?n rdf:type ontology:Q502895 }
Marie Antoinette
action filter_type
action find_reverse
entity Marie Antoinette
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Marie Antoinette']
SELECT DISTINCT ?n WHERE { ?n property:sister resource:Marie_Antoinette . ?n rdf:type ontology:common_name }
[]
common name
Q151321 Q158229 Q328233
SYSTEM
Leopold II, Holy Roman Emperor, Maria Carolina of Austria, Ferdinand, Duke of Breisgau
Q435955 Q236907 Q700564 Q328233 Q170186 Q236924 Q167439 Q151321 Q93810 Q237458 Q158229 Q76555 Q4785857 Q93362 Q1895832
(c(Q502895),P9,Q47365)
action filter_type
action find_reverse
entity Q47365
relation P9
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P9', 'Q47365']
SELECT DISTINCT ?n WHERE { ?n property:P9 resource:Q47365 . ?n rdf:type ontology:Q502895 }
Archduchess Maria Carolina of Austria Archduchess Maria Amalia of Austria Archduke Charles Joseph of Austria Ferdinand, Duke of Breisgau Archduchess Maria Anna of Austria Archduchess Maria Elisabeth of Austria Maria Christina, Duchess of Teschen Leopold II, Holy Roman Emperor Archduchess Maria Josepha of Austria Archduchess Maria Johanna Gabriela of Austria Maria Carolina of Austria Joseph II Archduchess Maria Carolina of Austria Archduke Maximilian Francis of Austria Archduchess Maria Elisabeth of Austria
Leopold II, Holy Roman Emperor, Maria Carolina of Austria and Ferdinand, Duke of Breisgau had Marie Antoinette as their sibling
Leopold II, Holy Roman Emperor Maria Carolina of Austria Ferdinand, Duke of Breisgau
action filter_type
action find_reverse
entity Marie Antoinette
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Marie Antoinette']
SELECT DISTINCT ?n WHERE { ?n property:sister resource:Marie_Antoinette . ?n rdf:type ontology:common_name }
[]