Simple Question (Direct)
Simple Question
Q288146
P26
Q502895
USER
Who is the spouse of Helen Shaver ?
(Q288146,P26,c(Q502895))
action filter_type
action find
entity Q288146
relation P26
type Q502895
['Q288146', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q288146 property:P26 ?k }
Helen Shaver
action filter_type
action find
entity Helen Shaver
relation spouse
type common name
['Helen Shaver', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Helen_Shaver property:spouse ?k }
[]
common name
Q7615194
SYSTEM
Steven Reuther
Q7615194
(Q288146,P26,c(Q502895))
action filter_type
action find
entity Q288146
relation P26
type Q502895
The spouse of Helen Shaver is the [ANSWER]
['Q288146', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q288146 property:P26 ?k }
Steven Reuther
The spouse of Helen Shaver is the Steven Reuther
Steven Reuther
action filter_type
action find
entity Helen Shaver
relation spouse
type common name
['Helen Shaver', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Helen_Shaver property:spouse ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q288146
P161
Q838948
USER
Which works of art have Helen Shaver in their star cast ?
(c(Q838948),P161,Q288146)
action filter_type
action find_reverse
entity Q288146
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q288146']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q288146 . ?a rdf:type ontology:Q838948 }
Helen Shaver
action filter_type
action find_reverse
entity Helen Shaver
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Helen Shaver']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Helen_Shaver . ?a rdf:type ontology:work_of_art }
[]
work of art
Q472512 Q470916 Q937005
SYSTEM
The Amityville Horror, The Color of Money, The Craft
Q778664 Q937005 Q3040259 Q1433571 Q543389 Q2412301 Q472512 Q1170186 Q470916 Q3959696 Q2265734 Q6010467 Q2294411 Q1170020 Q1522064 Q5672886 Q430767
(c(Q838948),P161,Q288146)
action filter_type
action find_reverse
entity Q288146
relation P161
type Q838948
[ANSWERS] have Helen Shaver in their star cast
[{'concept': 'Q838948'}, 'P161', 'Q288146']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q288146 . ?a rdf:type ontology:Q838948 }
Outrageous! The Craft Born to Be Wild Tremors 2: Aftershocks Best Defense The Keeper The Amityville Horror The Believers The Color of Money Shoot That Night In Praise of Older Women Gas The Osterman Weekend Starship Invasions Harry Tracy, Desperado Desert Hearts
The Amityville Horror, The Color of Money and The Craft have Helen Shaver in their star cast
The Amityville Horror The Color of Money The Craft
action filter_type
action find_reverse
entity Helen Shaver
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Helen Shaver']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Helen_Shaver . ?a rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q288146
P57
Q15416
USER
Which television programs are that person a director of ?
(c(Q15416),P57,Q472512) (c(Q15416),P57,Q470916) (c(Q15416),P57,Q937005)
action filter_type
action find_reverse
entity Q288146
relation P57
type Q15416
[{'concept': 'Q15416'}, 'P57', 'Q472512'] [{'concept': 'Q15416'}, 'P57', 'Q470916'] [{'concept': 'Q15416'}, 'P57', 'Q937005']
SELECT DISTINCT ?l WHERE { ?l property:P57 resource:Q288146 . ?l rdf:type ontology:Q15416 }
Helen Shaver
action filter_type
action find_reverse
entity Helen Shaver
relation director
type television program
[{'concept': 'television program'}, 'director', 'The Amityville Horror'] [{'concept': 'television program'}, 'director', 'The Color of Money'] [{'concept': 'television program'}, 'director', 'The Craft']
SELECT DISTINCT ?l WHERE { ?l property:director resource:Helen_Shaver . ?l rdf:type ontology:television_program }
[]
television program
Q7103920 Q1167695 Q4880457
SYSTEM
Orphan Black, Summer's End, Beggars and Choosers
Q7103920 Q1167695 Q4880457
(c(Q15416),P57,Q472512) (c(Q15416),P57,Q470916) (c(Q15416),P57,Q937005)
action filter_type
action find_reverse
entity Q288146
relation P57
type Q15416
[ANSWERS] are that person a director of
[{'concept': 'Q15416'}, 'P57', 'Q472512'] [{'concept': 'Q15416'}, 'P57', 'Q470916'] [{'concept': 'Q15416'}, 'P57', 'Q937005']
SELECT DISTINCT ?l WHERE { ?l property:P57 resource:Q288146 . ?l rdf:type ontology:Q15416 }
Orphan Black Summer's End Beggars and Choosers
Orphan Black, Summer's End and Beggars and Choosers are that person a director of
Orphan Black Summer's End Beggars and Choosers
action filter_type
action find_reverse
entity Helen Shaver
relation director
type television program
[{'concept': 'television program'}, 'director', 'The Amityville Horror'] [{'concept': 'television program'}, 'director', 'The Color of Money'] [{'concept': 'television program'}, 'director', 'The Craft']
SELECT DISTINCT ?l WHERE { ?l property:director resource:Helen_Shaver . ?l rdf:type ontology:television_program }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q288146
P106
Q28640 Q12737077
USER
How many professions or occupations are the professions of Helen Shaver ?
(Q288146,P106,c(Q28640)) (Q288146,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q288146
relation P106
type Q28640
action filter_type
action find
entity Q288146
relation P106
type Q12737077
['Q288146', 'P106', {'concept': 'Q28640'}] ['Q288146', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { resource:Q288146 property:P106 ?t . ?t rdf:type ontology:Q28640 } UNION { ?t rdf:type ontology:Q12737077 . resource:Q288146 property:P106 ?t } }
Helen Shaver
action count
action union
action filter_type
action find
entity Helen Shaver
relation occupation
type profession
action filter_type
action find
entity Helen Shaver
relation occupation
type occupation
['Helen Shaver', 'occupation', {'concept': 'profession'}] ['Helen Shaver', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { resource:Helen_Shaver property:occupation ?t . ?t rdf:type ontology:profession } UNION { ?t rdf:type ontology:occupation . resource:Helen_Shaver property:occupation ?t } }
[]
profession occupation
SYSTEM
3
Q33999 Q2526255 Q3282637
(Q288146,P106,c(Q28640)) (Q288146,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q288146
relation P106
type Q28640
action filter_type
action find
entity Q288146
relation P106
type Q12737077
[ANSWER]
['Q288146', 'P106', {'concept': 'Q28640'}] ['Q288146', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { resource:Q288146 property:P106 ?t . ?t rdf:type ontology:Q28640 } UNION { ?t rdf:type ontology:Q12737077 . resource:Q288146 property:P106 ?t } }
actor film director film producer
3
action count
action union
action filter_type
action find
entity Helen Shaver
relation occupation
type profession
action filter_type
action find
entity Helen Shaver
relation occupation
type occupation
['Helen Shaver', 'occupation', {'concept': 'profession'}] ['Helen Shaver', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { resource:Helen_Shaver property:occupation ?t . ?t rdf:type ontology:profession } UNION { ?t rdf:type ontology:occupation . resource:Helen_Shaver property:occupation ?t } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q288146
P106
Q28640
USER
What are the job of that person ?
action filter_type
action find
entity Q288146
relation P106
type Q28640
SELECT DISTINCT ?o WHERE { resource:Q288146 property:P106 ?o . ?o rdf:type ontology:Q28640 }
Helen Shaver
action filter_type
action find
entity Helen Shaver
relation occupation
type profession
SELECT DISTINCT ?o WHERE { resource:Helen_Shaver property:occupation ?o . ?o rdf:type ontology:profession }
[]
profession
Q2526255 Q3282637
SYSTEM
film director, film producer
Q2526255 Q3282637
action filter_type
action find
entity Q288146
relation P106
type Q28640
The job of that person are the [ANSWERS]
SELECT DISTINCT ?o WHERE { resource:Q288146 property:P106 ?o . ?o rdf:type ontology:Q28640 }
film director film producer
The job of that person are the film director and film producer
film director film producer
action filter_type
action find
entity Helen Shaver
relation occupation
type profession
SELECT DISTINCT ?o WHERE { resource:Helen_Shaver property:occupation ?o . ?o rdf:type ontology:profession }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q874405 Q16334295
USER
How many social groups and groups of humans have career as that profession ?
(c(Q874405),P106,Q2526255) (c(Q16334295),P106,Q2526255) (c(Q874405),P106,Q2526255) (c(Q16334295),P106,Q2526255) (c(Q874405),P106,Q3282637) (c(Q16334295),P106,Q3282637)
[{'concept': 'Q874405'}, 'P106', 'Q2526255'] [{'concept': 'Q16334295'}, 'P106', 'Q2526255'] [{'concept': 'Q874405'}, 'P106', 'Q2526255'] [{'concept': 'Q16334295'}, 'P106', 'Q2526255'] [{'concept': 'Q874405'}, 'P106', 'Q3282637'] [{'concept': 'Q16334295'}, 'P106', 'Q3282637']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q528892 resource:Q2526255 } UNION { ?y property:Q528892 resource:Q2526255 } UNION { ?z property:Q528892 resource:Q2526255 } UNION { ?y property:Q528892 resource:Q2526255 } UNION { ?z property:Q528892 resource:Q3282637 } UNION { ?y property:Q528892 resource:Q3282637 } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q16334295 }
[{'concept': 'social group'}, 'occupation', 'film director'] [{'concept': 'group of humans'}, 'occupation', 'film director'] [{'concept': 'social group'}, 'occupation', 'film director'] [{'concept': 'group of humans'}, 'occupation', 'film director'] [{'concept': 'social group'}, 'occupation', 'film producer'] [{'concept': 'group of humans'}, 'occupation', 'film producer']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:occupation resource:film_director } UNION { ?y property:occupation resource:film_director } UNION { ?z property:occupation resource:film_director } UNION { ?y property:occupation resource:film_director } UNION { ?z property:occupation resource:film_producer } UNION { ?y property:occupation resource:film_producer } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:group_of_humans }
[]
social group group of humans
Quantitative|Count|Mult. entity type|Clarification
Q2526255
SYSTEM
Did you mean film director ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q528892 resource:Q2526255 } UNION { ?y property:Q528892 resource:Q2526255 } UNION { ?z property:Q528892 resource:Q2526255 } UNION { ?y property:Q528892 resource:Q2526255 } UNION { ?z property:Q528892 resource:Q3282637 } UNION { ?y property:Q528892 resource:Q3282637 } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q16334295 }
Did you mean film director ?
film director
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:occupation resource:film_director } UNION { ?y property:occupation resource:film_director } UNION { ?z property:occupation resource:film_director } UNION { ?y property:occupation resource:film_director } UNION { ?z property:occupation resource:film_producer } UNION { ?y property:occupation resource:film_producer } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:group_of_humans }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q874405),P106,Q2526255) (c(Q16334295),P106,Q2526255) (c(Q874405),P106,Q2526255) (c(Q16334295),P106,Q2526255) (c(Q874405),P106,Q3282637) (c(Q16334295),P106,Q3282637)
[{'concept': 'Q874405'}, 'P106', 'Q2526255'] [{'concept': 'Q16334295'}, 'P106', 'Q2526255'] [{'concept': 'Q874405'}, 'P106', 'Q2526255'] [{'concept': 'Q16334295'}, 'P106', 'Q2526255'] [{'concept': 'Q874405'}, 'P106', 'Q3282637'] [{'concept': 'Q16334295'}, 'P106', 'Q3282637']
[{'concept': 'social group'}, 'occupation', 'film director'] [{'concept': 'group of humans'}, 'occupation', 'film director'] [{'concept': 'social group'}, 'occupation', 'film director'] [{'concept': 'group of humans'}, 'occupation', 'film director'] [{'concept': 'social group'}, 'occupation', 'film producer'] [{'concept': 'group of humans'}, 'occupation', 'film producer']
[]
SYSTEM
2 social groups and 2 groups of humans
Q1000219 Q17011440 Q5521269 Q3662243
(c(Q874405),P106,Q2526255) (c(Q16334295),P106,Q2526255) (c(Q874405),P106,Q2526255) (c(Q16334295),P106,Q2526255) (c(Q874405),P106,Q3282637) (c(Q16334295),P106,Q3282637)
[ANSWER]
[{'concept': 'Q874405'}, 'P106', 'Q2526255'] [{'concept': 'Q16334295'}, 'P106', 'Q2526255'] [{'concept': 'Q874405'}, 'P106', 'Q2526255'] [{'concept': 'Q16334295'}, 'P106', 'Q2526255'] [{'concept': 'Q874405'}, 'P106', 'Q3282637'] [{'concept': 'Q16334295'}, 'P106', 'Q3282637']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q528892 resource:Q2526255 } UNION { ?y property:Q528892 resource:Q2526255 } UNION { ?z property:Q528892 resource:Q2526255 } UNION { ?y property:Q528892 resource:Q2526255 } UNION { ?z property:Q528892 resource:Q3282637 } UNION { ?y property:Q528892 resource:Q3282637 } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q16334295 }
Kapoor family Scott B and Beth B Ganguly family Castellano and Pipolo
2 social groups and 2 groups of humans
[{'concept': 'social group'}, 'occupation', 'film director'] [{'concept': 'group of humans'}, 'occupation', 'film director'] [{'concept': 'social group'}, 'occupation', 'film director'] [{'concept': 'group of humans'}, 'occupation', 'film director'] [{'concept': 'social group'}, 'occupation', 'film producer'] [{'concept': 'group of humans'}, 'occupation', 'film producer']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:occupation resource:film_director } UNION { ?y property:occupation resource:film_director } UNION { ?z property:occupation resource:film_director } UNION { ?y property:occupation resource:film_director } UNION { ?z property:occupation resource:film_producer } UNION { ?y property:occupation resource:film_producer } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:group_of_humans }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P355
Q1269299 Q28640
USER
Which business organizations are an auxiliary of approximately 1 profession ?
(c(Q28640),P355,c(Q1269299))
action approx
action find_reverse_tuple_counts
relation P355
type Q1269299
type Q28640
value 1
[{'concept': 'Q28640'}, 'P355', {'concept': 'Q1269299'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:P355 ?o . ?o rdf:type ontology:Q1269299 . ?s rdf:type ontology:Q28640 } GROUP BY ?o } }
action approx
action find_reverse_tuple_counts
relation subsidiary
type type of business entity
type profession
value 1
[{'concept': 'profession'}, 'subsidiary', {'concept': 'type of business entity'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:subsidiary ?o . ?o rdf:type ontology:type_of_business_entity . ?s rdf:type ontology:profession } GROUP BY ?o } }
[]
type of business entity profession
Q20112954 Q20045200
SYSTEM
Sega Games, SEGA Interactive
Q20112954 Q20045200
(c(Q28640),P355,c(Q1269299))
action approx
action find_reverse_tuple_counts
relation P355
type Q1269299
type Q28640
value 1
[ANSWERS] are an auxiliary of approximately 1 profession
[{'concept': 'Q28640'}, 'P355', {'concept': 'Q1269299'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:P355 ?o . ?o rdf:type ontology:Q1269299 . ?s rdf:type ontology:Q28640 } GROUP BY ?o } }
Sega Games SEGA Interactive
Sega Games and SEGA Interactive are an auxiliary of approximately 1 profession
Sega Games SEGA Interactive
action approx
action find_reverse_tuple_counts
relation subsidiary
type type of business entity
type profession
value 1
[{'concept': 'profession'}, 'subsidiary', {'concept': 'type of business entity'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:subsidiary ?o . ?o rdf:type ontology:type_of_business_entity . ?s rdf:type ontology:profession } GROUP BY ?o } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P355
Q131257 Q1269299
USER
Which intellectual properties are the subordinates of atmost 1 business organization ?
(c(Q1269299),P355,c(Q131257))
action atmost
action find_reverse_tuple_counts
relation P355
type Q131257
type Q1269299
value 1
[{'concept': 'Q1269299'}, 'P355', {'concept': 'Q131257'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:P355 ?u . ?u rdf:type ontology:Q131257 . ?y rdf:type ontology:Q1269299 } GROUP BY ?u } . FILTER ( ?p <= 1 ) }
action atmost
action find_reverse_tuple_counts
relation subsidiary
type intellectual property
type type of business entity
value 1
[{'concept': 'type of business entity'}, 'subsidiary', {'concept': 'intellectual property'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:subsidiary ?u . ?u rdf:type ontology:intellectual_property . ?y rdf:type ontology:type_of_business_entity } GROUP BY ?u } . FILTER ( ?p <= 1 ) }
[]
intellectual property type of business entity
Q6677525 Q2932616 Q1702123
SYSTEM
Cadbury, Cadbury France, Saint-Gobain Weber
Q1094559 Q2085762 Q2007340 Q2181426 Q1142157 Q1545718 Q2308887 Q18215890 Q3377305 Q1702123 Q3200090 Q2964274 Q1637028 Q3071657 Q1798985 Q3411867 Q6435805 Q3116568 Q1630895 Q5731989 Q119203 Q2940457 Q585992 Q2148593 Q1150967 Q3368437 Q470995 Q3139416 Q3557667 Q3160119 Q2932947 Q841470 Q3313133 Q3211619 Q1092618 Q3487556 Q1993628 Q2468046 Q8032660 Q614920 Q3115443 Q629009 Q749554 Q2932538 Q1686705 Q1531983 Q3134930 Q215707 Q6677525 Q536691 Q2061707 Q2376804 Q2961481 Q1050918 Q757388 Q5016273 Q138585 Q2357825 Q2932616 Q3360531 Q1034035 Q3554480 Q304992 Q3338446 Q3306551 Q2744433 Q1146710 Q638523 Q152532 Q779511 Q3500302 Q3315811 Q2904636
(c(Q1269299),P355,c(Q131257))
action atmost
action find_reverse_tuple_counts
relation P355
type Q131257
type Q1269299
value 1
[ANSWERS] are the subordinates of atmost 1 business organization
[{'concept': 'Q1269299'}, 'P355', {'concept': 'Q131257'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:P355 ?u . ?u rdf:type ontology:Q131257 . ?y rdf:type ontology:Q1269299 } GROUP BY ?u } . FILTER ( ?p <= 1 ) }
Leibniz-Keks Philadelphia cream cheese Chokotoff Leader Price Cruzan Rum Nabisco Vittel Borio Petit écolier Saint-Gobain Weber Kréma Chocolat Suchard Mythos Brewery Figolu SKYY Vodka Pépito Kraft Dinner Grey Poupon Hotel Formule 1 Bonka Granola Carte Noire Southern Comfort Ricard Côte d'Or Pastador Carambar Hollywood Chewing Gum Victoria Jacques Vabre Café Grand'Mère Vegemite Mikado La Pie qui Chante Cinzano Société Nestea Jacobs Woodford Reserve BSH Hausgeräte Grany San Pellegrino Malabar Cachou Lajaunie Jell-O Kool-Aid Heudebert Toblerone Cadbury Cheez Whiz Wild Turkey Chocolat Poulain Chat Noir Evian Milka Cadbury Mr. Big Oreo Vichy Pastilles Cadbury France Paille d'or Finlandia Vodka Vandamme Gatorade Nestlé Waters Maxwell House Tang Lumix Tassimo Skol Lefèvre-Utile Always Miracle Whip Biscuiterie Belin
Cadbury, Cadbury France and Saint-Gobain Weber are the subordinates of atmost 1 business organization
Cadbury Cadbury France Saint-Gobain Weber
action atmost
action find_reverse_tuple_counts
relation subsidiary
type intellectual property
type type of business entity
value 1
[{'concept': 'type of business entity'}, 'subsidiary', {'concept': 'intellectual property'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:subsidiary ?u . ?u rdf:type ontology:intellectual_property . ?y rdf:type ontology:type_of_business_entity } GROUP BY ?u } . FILTER ( ?p <= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P355
Q131257 Q1269299
USER
Which business organizations have max number of intellectual properties as their subsidiary ?
(c(Q1269299),P355,c(Q131257))
action argmax
action find_tuple_counts
relation P355
type Q1269299
type Q131257
[{'concept': 'Q1269299'}, 'P355', {'concept': 'Q131257'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?a ) { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?u ) WHERE { ?d property:P355 ?n . ?d rdf:type ontology:Q1269299 . ?n rdf:type ontology:Q131257 } GROUP BY ?d } } . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?k ) WHERE { ?g property:P355 ?o . ?o rdf:type ontology:Q131257 . ?g rdf:type ontology:Q1269299 } GROUP BY ?g } . FILTER ( ?k = ?a ) }
action argmax
action find_tuple_counts
relation subsidiary
type type of business entity
type intellectual property
[{'concept': 'type of business entity'}, 'subsidiary', {'concept': 'intellectual property'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?a ) { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?u ) WHERE { ?d property:subsidiary ?n . ?d rdf:type ontology:type_of_business_entity . ?n rdf:type ontology:intellectual_property } GROUP BY ?d } } . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?k ) WHERE { ?g property:subsidiary ?o . ?o rdf:type ontology:intellectual_property . ?g rdf:type ontology:type_of_business_entity } GROUP BY ?g } . FILTER ( ?k = ?a ) }
[]
intellectual property type of business entity
Q327751
SYSTEM
Kraft Foods
Q327751
(c(Q1269299),P355,c(Q131257))
action argmax
action find_tuple_counts
relation P355
type Q1269299
type Q131257
[ANSWER] have max number of intellectual properties as their subsidiary
[{'concept': 'Q1269299'}, 'P355', {'concept': 'Q131257'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?a ) { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?u ) WHERE { ?d property:P355 ?n . ?d rdf:type ontology:Q1269299 . ?n rdf:type ontology:Q131257 } GROUP BY ?d } } . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?k ) WHERE { ?g property:P355 ?o . ?o rdf:type ontology:Q131257 . ?g rdf:type ontology:Q1269299 } GROUP BY ?g } . FILTER ( ?k = ?a ) }
Kraft Foods
Kraft Foods have max number of intellectual properties as their subsidiary
Kraft Foods
action argmax
action find_tuple_counts
relation subsidiary
type type of business entity
type intellectual property
[{'concept': 'type of business entity'}, 'subsidiary', {'concept': 'intellectual property'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?a ) { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?u ) WHERE { ?d property:subsidiary ?n . ?d rdf:type ontology:type_of_business_entity . ?n rdf:type ontology:intellectual_property } GROUP BY ?d } } . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?k ) WHERE { ?g property:subsidiary ?o . ?o rdf:type ontology:intellectual_property . ?g rdf:type ontology:type_of_business_entity } GROUP BY ?g } . FILTER ( ?k = ?a ) }
[]