Simple Question (Direct)
Simple Question
Q3480367
P161
Q502895
USER
Which people starred in Service de nuit ?
(Q3480367,P161,c(Q502895))
action filter_type
action find
entity Q3480367
relation P161
type Q502895
['Q3480367', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q3480367 property:P161 ?p . ?p rdf:type ontology:Q502895 }
Service de nuit
action filter_type
action find
entity Service de nuit
relation cast member
type common name
['Service de nuit', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Service_de_nuit property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
common name
Q106126 Q430212 Q321212
SYSTEM
Simone Signoret, Louis Seigner, Robert Dhéry
Q2831141 Q3157777 Q3094129 Q277980 Q3289553 Q3421279 Q106126 Q3171574 Q430212 Q730564 Q528738 Q1712227 Q321212 Q2831412 Q3265507 Q3158807
(Q3480367,P161,c(Q502895))
action filter_type
action find
entity Q3480367
relation P161
type Q502895
[ANSWERS] starred in Service de nuit
['Q3480367', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q3480367 property:P161 ?p . ?p rdf:type ontology:Q502895 }
Albert Duvaleix Jacqueline Pagnol Gabrielle Fontan Paul Frankeur Marcelle Hainia Raymone Duchateau Simone Signoret Jean Daurand Louis Seigner Pierre Collet Gaby Morlay Julien Carette Robert Dhéry Albert Montigny Lucien Gallas Jacques Dumesnil
Simone Signoret, Louis Seigner and Robert Dhéry starred in Service de nuit
Simone Signoret Louis Seigner Robert Dhéry
action filter_type
action find
entity Service de nuit
relation cast member
type common name
['Service de nuit', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Service_de_nuit property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q430212
P22
Q502895
USER
Which person has that one as father ?
(c(Q502895),P22,Q430212)
action filter_type
action find_reverse
entity Q430212
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q430212']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q430212 . ?w rdf:type ontology:Q502895 }
Louis Seigner
action filter_type
action find_reverse
entity Louis Seigner
relation father
type common name
[{'concept': 'common name'}, 'father', 'Louis Seigner']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Louis_Seigner . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q106126
SYSTEM
Did you mean Simone Signoret ?
Q106126 Q430212 Q321212
(c(Q502895),P22,Q106126) (c(Q502895),P22,Q430212) (c(Q502895),P22,Q321212)
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q106126'] [{'concept': 'Q502895'}, 'P22', 'Q430212'] [{'concept': 'Q502895'}, 'P22', 'Q321212']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q430212 . ?w rdf:type ontology:Q502895 }
Simone Signoret Louis Seigner Robert Dhéry
Did you mean Simone Signoret ?
Simone Signoret
[{'concept': 'common name'}, 'father', 'Simone Signoret'] [{'concept': 'common name'}, 'father', 'Louis Seigner'] [{'concept': 'common name'}, 'father', 'Robert Dhéry']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Louis_Seigner . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Louis Seigner. Could you tell me the answer for that?
(c(Q502895),P22,Q430212)
Q430212
[{'concept': 'Q502895'}, 'P22', 'Q430212']
[{'concept': 'common name'}, 'father', 'Louis Seigner']
[]
Q568490
SYSTEM
Françoise Seigner
Q568490
(c(Q502895),P22,Q430212)
action filter_type
action find_reverse
entity Q430212
relation P22
type Q502895
[ANSWER] has that one as father
[{'concept': 'Q502895'}, 'P22', 'Q430212']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q430212 . ?w rdf:type ontology:Q502895 }
Françoise Seigner
Françoise Seigner has that one as father
Françoise Seigner
action filter_type
action find_reverse
entity Louis Seigner
relation father
type common name
[{'concept': 'common name'}, 'father', 'Louis Seigner']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Louis_Seigner . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q733627 Q106126
P1411
Q4220917
USER
Which film awards were Simone Signoret and A Place in the Sun nominated for ?
AND((Q106126,P1411,c(Q4220917)), (Q733627,P1411,c(Q4220917)))
action filter_type
action intersection
action find
entity Q106126
relation P1411
action find
entity Q733627
relation P1411
type Q4220917
{'AND': [['Q106126', 'P1411', {'concept': 'Q4220917'}], ['Q733627', 'P1411', {'concept': 'Q4220917'}]]}
SELECT DISTINCT ?q WHERE { resource:Q106126 property:P1411 ?q . resource:Q733627 property:P1411 ?q . ?q rdf:type ontology:Q4220917 }
A Place in the Sun Simone Signoret
action filter_type
action intersection
action find
entity Simone Signoret
relation nominated for
action find
entity A Place in the Sun
relation nominated for
type film award
{'AND': [['Simone Signoret', 'nominated for', {'concept': 'film award'}], ['A Place in the Sun', 'nominated for', {'concept': 'film award'}]]}
SELECT DISTINCT ?q WHERE { resource:Simone_Signoret property:nominated_for ?q . resource:A_Place_in_the_Sun property:nominated_for ?q . ?q rdf:type ontology:film_award }
[]
film award
Q103618
SYSTEM
Academy Award for Best Actress
Q103618
AND((Q106126,P1411,c(Q4220917)), (Q733627,P1411,c(Q4220917)))
action filter_type
action intersection
action find
entity Q106126
relation P1411
action find
entity Q733627
relation P1411
type Q4220917
The [ANSWER] was Simone Signoret and A Place in the Sun nominated for
{'AND': [['Q106126', 'P1411', {'concept': 'Q4220917'}], ['Q733627', 'P1411', {'concept': 'Q4220917'}]]}
SELECT DISTINCT ?q WHERE { resource:Q106126 property:P1411 ?q . resource:Q733627 property:P1411 ?q . ?q rdf:type ontology:Q4220917 }
Academy Award for Best Actress
The Academy Award for Best Actress was Simone Signoret and A Place in the Sun nominated for
Academy Award for Best Actress
action filter_type
action intersection
action find
entity Simone Signoret
relation nominated for
action find
entity A Place in the Sun
relation nominated for
type film award
{'AND': [['Simone Signoret', 'nominated for', {'concept': 'film award'}], ['A Place in the Sun', 'nominated for', {'concept': 'film award'}]]}
SELECT DISTINCT ?q WHERE { resource:Simone_Signoret property:nominated_for ?q . resource:A_Place_in_the_Sun property:nominated_for ?q . ?q rdf:type ontology:film_award }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6338760 Q430212
P27 P495
Q15617994
USER
Which administrative territories do Louis Seigner belong to or did El maleficio originate ?
OR((Q430212,P27,c(Q15617994)), (Q6338760,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q430212
relation P27
action find
entity Q6338760
relation P495
type Q15617994
{'OR': [['Q430212', 'P27', {'concept': 'Q15617994'}], ['Q6338760', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . { { resource:Q430212 property:P27 ?u } UNION { resource:Q6338760 property:P495 ?u } } }
El maleficio Louis Seigner
action filter_type
action union
action find
entity Louis Seigner
relation country of citizenship
action find
entity El maleficio
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Louis Seigner', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['El maleficio', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Louis_Seigner property:country_of_citizenship ?u } UNION { resource:El_maleficio property:country_of_origin ?u } } }
[]
designation for an administrative territorial entity
Q142 Q96
SYSTEM
France, Mexico
Q142 Q96
OR((Q430212,P27,c(Q15617994)), (Q6338760,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q430212
relation P27
action find
entity Q6338760
relation P495
type Q15617994
Louis Seigner belong to [ANSWERS]
{'OR': [['Q430212', 'P27', {'concept': 'Q15617994'}], ['Q6338760', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . { { resource:Q430212 property:P27 ?u } UNION { resource:Q6338760 property:P495 ?u } } }
France Mexico
Louis Seigner belong to France and Mexico
France Mexico
action filter_type
action union
action find
entity Louis Seigner
relation country of citizenship
action find
entity El maleficio
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Louis Seigner', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['El maleficio', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Louis_Seigner property:country_of_citizenship ?u } UNION { resource:El_maleficio property:country_of_origin ?u } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q9311002 Q321212
P19 P27
Q15617994
USER
Which administrative territories were Robert Dhéry born or are the native countriesof Robert Mirzyński ?
OR((Q321212,P19,c(Q15617994)), (Q9311002,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q321212
relation P19
action find
entity Q9311002
relation P27
type Q15617994
{'OR': [['Q321212', 'P19', {'concept': 'Q15617994'}], ['Q9311002', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q321212 property:P19 ?k } UNION { resource:Q9311002 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Robert Mirzyński Robert Dhéry
action filter_type
action union
action find
entity Robert Dhéry
relation place of birth
action find
entity Robert Mirzyński
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Robert Dhéry', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Robert Mirzyński', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Robert_Dhéry property:place_of_birth ?k } UNION { resource:Robert_Mirzyński property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q36
SYSTEM
France, Poland
Q142 Q36
OR((Q321212,P19,c(Q15617994)), (Q9311002,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q321212
relation P19
action find
entity Q9311002
relation P27
type Q15617994
Robert Dhéry were born in [ANSWERS] or are the native countriesof Robert Mirzyński
{'OR': [['Q321212', 'P19', {'concept': 'Q15617994'}], ['Q9311002', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q321212 property:P19 ?k } UNION { resource:Q9311002 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
France Poland
Robert Dhéry were born in France and Poland or are the native countriesof Robert Mirzyński
France Poland
action filter_type
action union
action find
entity Robert Dhéry
relation place of birth
action find
entity Robert Mirzyński
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Robert Dhéry', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Robert Mirzyński', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Robert_Dhéry property:place_of_birth ?k } UNION { resource:Robert_Mirzyński property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q36
P530
Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with around the same number of administrative territories as Poland ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q36
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?t ) WHERE { ?p property:P530 ?n . ?p rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Q36 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?t = ?q ) }
Poland
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Poland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?t ) WHERE { ?p property:diplomatic_relation ?n . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Poland property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t = ?q ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q36
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?t ) WHERE { ?p property:P530 ?n . ?p rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Q36 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?t = ?q ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
148
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Poland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?t ) WHERE { ?p property:diplomatic_relation ?n . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Poland property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t = ?q ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9311002
P21
Q290
USER
Which sex does Robert Mirzyński belong to ?
(Q9311002,P21,c(Q290))
action filter_type
action find
entity Q9311002
relation P21
type Q290
['Q9311002', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q290 . resource:Q9311002 property:P21 ?x }
Robert Mirzyński
action filter_type
action find
entity Robert Mirzyński
relation gender
type sex
['Robert Mirzyński', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sex . resource:Robert_Mirzyński property:gender ?x }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q9311002,P21,c(Q290))
action filter_type
action find
entity Q9311002
relation P21
type Q290
Robert Mirzyński belongs to [ANSWER]
['Q9311002', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q290 . resource:Q9311002 property:P21 ?x }
male
Robert Mirzyński belongs to male
male
action filter_type
action find
entity Robert Mirzyński
relation gender
type sex
['Robert Mirzyński', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sex . resource:Robert_Mirzyński property:gender ?x }
[]