Simple Question (Direct)
Simple Question
Q508720
P509
Q2057971
USER
How did Dorothy Mackaill die ?
(Q508720,P509,c(Q2057971))
action filter_type
action find
entity Q508720
relation P509
type Q2057971
['Q508720', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { resource:Q508720 property:P509 ?z . ?z rdf:type ontology:Q2057971 }
Dorothy Mackaill
action filter_type
action find
entity Dorothy Mackaill
relation cause of death
type health problem
['Dorothy Mackaill', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { resource:Dorothy_Mackaill property:cause_of_death ?z . ?z rdf:type ontology:health_problem }
[]
health problem
Q476921
SYSTEM
kidney failure
Q476921
(Q508720,P509,c(Q2057971))
action filter_type
action find
entity Q508720
relation P509
type Q2057971
Dorothy Mackaill died of [ANSWER]
['Q508720', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { resource:Q508720 property:P509 ?z . ?z rdf:type ontology:Q2057971 }
kidney failure
Dorothy Mackaill died of kidney failure
kidney failure
action filter_type
action find
entity Dorothy Mackaill
relation cause of death
type health problem
['Dorothy Mackaill', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { resource:Dorothy_Mackaill property:cause_of_death ?z . ?z rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q476921
P2175
Q8386
USER
Which drugs are used to cure that health problem ?
(c(Q8386),P2175,Q476921)
action filter_type
action find_reverse
entity Q476921
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q476921']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q8386 . ?z property:P2175 resource:Q476921 }
kidney failure
action filter_type
action find_reverse
entity kidney failure
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'kidney failure']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:drug . ?z property:medical_condition_treated resource:kidney_failure }
[]
drug
Q372539 Q421218 Q7160789
SYSTEM
fampridine, fondaparinux sodium, Peginterferon alfa-2b
Q372539 Q421218 Q7160789
(c(Q8386),P2175,Q476921)
action filter_type
action find_reverse
entity Q476921
relation P2175
type Q8386
[ANSWERS] are used to cure that health problem
[{'concept': 'Q8386'}, 'P2175', 'Q476921']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q8386 . ?z property:P2175 resource:Q476921 }
fampridine fondaparinux sodium Peginterferon alfa-2b
Fampridine, fondaparinux sodium and Peginterferon alfa-2b are used to cure that health problem
fampridine fondaparinux sodium Peginterferon alfa-2b
action filter_type
action find_reverse
entity kidney failure
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'kidney failure']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:drug . ?z property:medical_condition_treated resource:kidney_failure }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q178566
P921
Q8386 Q386724 Q2342494
USER
Which drugs were the main subjects of less number of works or collectables 's work than chlordiazepoxide ?
(c(Q386724)|c(Q2342494),P921,c(Q8386))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q386724
action find_reverse_tuple_counts
relation P921
type Q8386
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q178566
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:P921 resource:Q178566 . { { ?x rdf:type ontology:Q386724 } UNION { ?x rdf:type ontology:Q2342494 } } } } . FILTER ( ?b < ?f ) }
chlordiazepoxide
action less
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work
action find_reverse_tuple_counts
relation main subject
type drug
type collectable
action count
action filter_multi_types
action find_reverse
entity chlordiazepoxide
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:work ) ( ontology:collectable ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:main_subject resource:chlordiazepoxide . { { ?x rdf:type ontology:work } UNION { ?x rdf:type ontology:collectable } } } } . FILTER ( ?b < ?f ) }
[]
drug work collectable
Q39798 Q213511 Q7739
SYSTEM
Insulin, Erythromycin, Arsenic trioxide
Q377270 Q422416 Q410083 Q20816880 Q193572 Q192717 Q243547 Q1147309 Q409262 Q3273062 Q412194 Q5134338 Q411441 Q413486 Q71969 Q816759 Q60168 Q212272 Q1752915 Q3108899 Q424976 Q414796 Q184630 Q413188 Q193166 Q620730 Q188017 Q238474 Q281082 Q388801 Q134658 Q18939 Q170545 Q424145 Q421183 Q408471 Q413690 Q258450 Q685119 Q190067 Q554881 Q80863 Q174723 Q199678 Q422241 Q408646 Q425362 Q412143 Q326224 Q192471 Q76560 Q2467555 Q170304 Q421862 Q423364 Q384993 Q1215575 Q127060 Q193045 Q423930 Q412208 Q60235 Q411461 Q121874 Q244150 Q3800087 Q413968 Q273169 Q180912 Q421910 Q282629 Q410352 Q213511 Q192464 Q416821 Q200774 Q132621 Q221520 Q414547 Q375613 Q423169 Q415734 Q407617 Q413504 Q81225 Q412221 Q416507 Q179996 Q416503 Q846227 Q285911 Q411635 Q412415 Q41576 Q421119 Q410441 Q407781 Q415939 Q46452 Q422745 Q518114 Q186127 Q190012 Q19484 Q5319614 Q186969 Q409231 Q420673 Q2701912 Q422669 Q408977 Q300989 Q412496 Q191924 Q407172 Q423357 Q419995 Q423423 Q186521 Q415588 Q407308 Q422215 Q3322838 Q418157 Q219626 Q425296 Q348922 Q186242 Q2768526 Q318369 Q423746 Q485277 Q181619 Q411237 Q62947 Q191700 Q203174 Q183290 Q425289 Q409632 Q420360 Q2603363 Q169569 Q407535 Q410358 Q2341200 Q821641 Q408427 Q773449 Q2502747 Q409492 Q208451 Q422232 Q19856779 Q408032 Q182040 Q410595 Q2354337 Q251698 Q419401 Q418817 Q416516 Q57055 Q422112 Q415571 Q407927 Q39798 Q418523 Q410829 Q423814 Q192423 Q582356 Q423890 Q26272 Q186474 Q198504 Q22124685 Q327362 Q418656 Q410374 Q420436 Q410061 Q407125 Q7739
(c(Q386724)|c(Q2342494),P921,c(Q8386))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q386724
action find_reverse_tuple_counts
relation P921
type Q8386
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q178566
relation P921
type Q386724
type Q2342494
[ANSWERS] were the main subjects of less number of works or collectables 's work than chlordiazepoxide
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:P921 resource:Q178566 . { { ?x rdf:type ontology:Q386724 } UNION { ?x rdf:type ontology:Q2342494 } } } } . FILTER ( ?b < ?f ) }
dihydrocodeine 17β-estradiol Polyethylene glycol L-Lysine salicylic acid Streptomycin Ketamine Cyclandelate Meticillin MM1 buspirone Clioquinol hydrocodone diphenhydramine Hexamethylenetetramine Beta blocker diamorphine hydroxyurea trifluoperazine glipizide Vitamin A temazepam Potassium Chloride methacholine Choline Glycine L-Tyrosine 5-aminolevulinic acid Nalidixic Acid furosemide nicotinic acid azathioprine L-Phenylalanine Praziquantel Hexobarbital Paroxetine acetazolamide penicillin G methoxamine Δ9-tetrahydrocannabinol Ethylmorphine Adenosine triphosphate codeine Vitamin C Sodium lauryl sulfate Triclosan Hexachlorophene triazolam Colchicine Menadione antidepressant Furazolidone dopamine ribavirin propranolol Isoflurophate naproxen Folic Acid Tetracycline hydrochlorothiazide lisinopril caffeine pilocarpine Potassium Iodide Ampicillin pyrilamine Dimercaprol capsaicin melatonin phenylephrine Vinblastine gabapentin Erythromycin Levoleucovorin Menotropins Follitropin beta (-)-adrenaline triamterene Sodium salicylate RK-0202 Isoniazid Aminopterin sertraline azelaic acid morphine clonidine thiotepa methadone Aminophenazone antiviral drug ouabain Permethrin cisplatin cocaine captopril modafinil dextromethorphan chlorambucil opiumerty Benzocaine Oxybenzone Dactinomycin adenosine metformin Dz13 ibuprofen indomethacin guanethidine clofibrate Nitrofurantoin vincristine levodopa quinidine Methamphetamine Chorionic gonadotropin eugenol amiloride Sulfanilamide L-Threonine Carboplatin theophylline Phenoxymethylpenicillin (+/-)-benzphetamine Phentermine (-)-ephedrine prazosin busulfan (-)-noradrenaline monobenzone Adenosine monophosphate Pyridoxine L-Histidine L-Glutamine 4-hydroxyproline flunitrazepam Benzoic Acid thalidomide L-Serine chlorthalidone pentobarbital phentolamine chlorothiazide Metronidazole oxycodone salbutamol Clodronate metyrapone Sulfathiazole T4 Sofosbuvir cimetidine calcium chloride methotrexate mitomycin C Edetic Acid Aspartame physostigmine Phosphatidyl serine Amifostine Carbachol etoposide enoxaparin paracetamol methylphenidate Bleomycin Dimethyl sulfoxide Insulin niclosamide Heptabarbital dimercaptosuccinic acid Nicotinamide Interferon gamma-1b digitoxin Atropine L-Cysteine zidovudine L-Methionine triiodothyronine procarbazine Papaverine docetaxel amiodarone Aluminum hydroxide Arsenic trioxide
Insulin, Erythromycin and Arsenic trioxide were the main subjects of less number of works or collectables 's work than chlordiazepoxide
Insulin Erythromycin Arsenic trioxide
action less
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work
action find_reverse_tuple_counts
relation main subject
type drug
type collectable
action count
action filter_multi_types
action find_reverse
entity chlordiazepoxide
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:work ) ( ontology:collectable ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:main_subject resource:chlordiazepoxide . { { ?x rdf:type ontology:work } UNION { ?x rdf:type ontology:collectable } } } } . FILTER ( ?b < ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q416740
P921
Q8386 Q386724 Q2342494
USER
And what about enflurane?
(c(Q386724)|c(Q2342494),P921,c(Q8386))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q386724
action find_reverse_tuple_counts
relation P921
type Q8386
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q416740
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:P921 resource:Q416740 . { { ?t rdf:type ontology:Q386724 } UNION { ?t rdf:type ontology:Q2342494 } } } } . FILTER ( ?k < ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?k ) WHERE { { ?a property:P921 ?y . ?y rdf:type ontology:Q8386 . ?a rdf:type ontology:Q386724 } UNION { ?a property:P921 ?y . ?y rdf:type ontology:Q8386 . ?a rdf:type ontology:Q2342494 } } GROUP BY ?y } }
enflurane
action less
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work
action find_reverse_tuple_counts
relation main subject
type drug
type collectable
action count
action filter_multi_types
action find_reverse
entity enflurane
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:main_subject resource:enflurane . { { ?t rdf:type ontology:work } UNION { ?t rdf:type ontology:collectable } } } } . FILTER ( ?k < ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?k ) WHERE { { ?a property:main_subject ?y . ?y rdf:type ontology:drug . ?a rdf:type ontology:work } UNION { ?a property:main_subject ?y . ?y rdf:type ontology:drug . ?a rdf:type ontology:collectable } } GROUP BY ?y } }
[]
drug work collectable
Q39798 Q407972 Q213511
SYSTEM
Insulin, chlorpromazine, Erythromycin
Q377270 Q422416 Q410083 Q20816880 Q193572 Q192717 Q243547 Q1147309 Q409262 Q3273062 Q412194 Q5134338 Q415550 Q411441 Q418351 Q413486 Q71969 Q898739 Q421352 Q816759 Q60168 Q212272 Q1752915 Q422252 Q238512 Q3108899 Q424976 Q414796 Q184630 Q413188 Q193166 Q620730 Q188017 Q238474 Q281082 Q388801 Q134658 Q18939 Q170545 Q424145 Q423989 Q421183 Q408471 Q18936 Q413690 Q258450 Q685119 Q190067 Q554881 Q80863 Q174723 Q199678 Q422241 Q408646 Q425362 Q26963 Q412143 Q416206 Q326224 Q192471 Q76560 Q2467555 Q170304 Q421862 Q423364 Q384993 Q421781 Q1215575 Q127060 Q407972 Q193045 Q190875 Q423930 Q412208 Q60235 Q411461 Q121874 Q244150 Q3800087 Q413968 Q415869 Q273169 Q180912 Q421910 Q282629 Q410352 Q213511 Q192464 Q416821 Q23118 Q29417 Q200774 Q416905 Q419642 Q132621 Q221520 Q414547 Q375613 Q423169 Q423005 Q415734 Q407617 Q413504 Q134808 Q81225 Q412221 Q416507 Q179996 Q416503 Q846227 Q285911 Q412299 Q423762 Q411635 Q412415 Q41576 Q181003 Q152763 Q421119 Q410441 Q411885 Q407781 Q179731 Q5103230 Q415939 Q46452 Q422745 Q518114 Q186127 Q190012 Q19484 Q5319614 Q186969 Q409231 Q420673 Q2701912 Q422669 Q408977 Q300989 Q412496 Q191924 Q407172 Q423357 Q419995 Q423423 Q186521 Q415588 Q407308 Q422215 Q407541 Q3322838 Q287029 Q418157 Q418011 Q219626 Q425296 Q348922 Q900898 Q186242 Q2768526 Q318369 Q423746 Q485277 Q181619 Q407431 Q411237 Q419175 Q413918 Q62947 Q191700 Q203174 Q183290 Q425289 Q904308 Q409632 Q420360 Q2603363 Q169569 Q407535 Q410358 Q339975 Q2341200 Q18216 Q821641 Q1318776 Q52353 Q408427 Q773449 Q2502747 Q409492 Q208451 Q422232 Q414065 Q19856779 Q418560 Q408032 Q415850 Q182040 Q385347 Q410595 Q2354337 Q251698 Q419401 Q418817 Q416516 Q57055 Q422112 Q178566 Q415571 Q407927 Q425502 Q39798 Q408570 Q20817216 Q407841 Q418523 Q410829 Q423814 Q192423 Q582356 Q423890 Q26272 Q411456 Q186474 Q198504 Q22124685 Q327362 Q411594 Q418656 Q2298283 Q410374 Q420436 Q410061 Q407125 Q7739
(c(Q386724)|c(Q2342494),P921,c(Q8386))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q386724
action find_reverse_tuple_counts
relation P921
type Q8386
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q416740
relation P921
type Q386724
type Q2342494
[ANSWERS]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:P921 resource:Q416740 . { { ?t rdf:type ontology:Q386724 } UNION { ?t rdf:type ontology:Q2342494 } } } } . FILTER ( ?k < ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?k ) WHERE { { ?a property:P921 ?y . ?y rdf:type ontology:Q8386 . ?a rdf:type ontology:Q386724 } UNION { ?a property:P921 ?y . ?y rdf:type ontology:Q8386 . ?a rdf:type ontology:Q2342494 } } GROUP BY ?y } }
dihydrocodeine 17β-estradiol Polyethylene glycol L-Lysine salicylic acid Streptomycin Ketamine Cyclandelate Meticillin MM1 buspirone Clioquinol Isoprenaline hydrocodone meprobamate diphenhydramine Hexamethylenetetramine Laudanum norethisterone Beta blocker diamorphine hydroxyurea trifluoperazine dexamethasone 5-fluorouracil glipizide Vitamin A temazepam Potassium Chloride methacholine Choline Glycine L-Tyrosine 5-aminolevulinic acid Nalidixic Acid furosemide nicotinic acid azathioprine L-Phenylalanine Praziquantel diethylstilbestrol Hexobarbital Paroxetine doxorubicin acetazolamide penicillin G methoxamine Δ9-tetrahydrocannabinol Ethylmorphine Adenosine triphosphate codeine Vitamin C Sodium lauryl sulfate Triclosan Hexachlorophene progesterone triazolam Pentamidine Colchicine Menadione antidepressant Furazolidone dopamine ribavirin propranolol Isoflurophate Cupric Chloride naproxen Folic Acid chlorpromazine Tetracycline cortisol hydrochlorothiazide lisinopril caffeine pilocarpine Potassium Iodide Ampicillin pyrilamine Dimercaprol carmustine capsaicin melatonin phenylephrine Vinblastine gabapentin Erythromycin Levoleucovorin Menotropins LSD all-trans-retinoic acid Follitropin beta carisoprodol Trypan blue (-)-adrenaline triamterene Sodium salicylate RK-0202 Isoniazid Malathion Aminopterin sertraline azelaic acid vaccine morphine clonidine thiotepa methadone Aminophenazone antiviral drug ouabain oxazepam Paclitaxel Permethrin cisplatin cocaine L-Tryptophan Lithium captopril modafinil Chromic chloride dextromethorphan Sodium bicarbonate Chlorphentermine chlorambucil opiumerty Benzocaine Oxybenzone Dactinomycin adenosine metformin Dz13 ibuprofen indomethacin guanethidine clofibrate Nitrofurantoin vincristine levodopa quinidine Methamphetamine Chorionic gonadotropin eugenol amiloride Sulfanilamide L-Threonine Carboplatin theophylline Phenoxymethylpenicillin fentanyl (+/-)-benzphetamine Isotretinoin Phentermine mechlorethamine (-)-ephedrine prazosin busulfan probenecid (-)-noradrenaline monobenzone Adenosine monophosphate Pyridoxine L-Histidine L-Glutamine Warfarin 4-hydroxyproline Phenacetin Isoflurane flunitrazepam Benzoic Acid thalidomide L-Serine chlorthalidone Mestranol pentobarbital phentolamine chlorothiazide Metronidazole oxycodone salbutamol Sodium Nitrite Clodronate acetylsalicylic acid metyrapone testosterone Benzyl alcohol Sulfathiazole T4 Sofosbuvir cimetidine calcium chloride methotrexate attapulgite mitomycin C ifosfamide Edetic Acid Amobarbital Aspartame thioguanine physostigmine Phosphatidyl serine Amifostine Carbachol etoposide enoxaparin paracetamol methylphenidate chlordiazepoxide Bleomycin Dimethyl sulfoxide Nitrofural Insulin Methoxsalen testosterone propionate reserpine niclosamide Heptabarbital dimercaptosuccinic acid Nicotinamide Interferon gamma-1b digitoxin Atropine methocarbamol L-Cysteine zidovudine L-Methionine triiodothyronine methoxyflurane procarbazine melphalan Papaverine docetaxel amiodarone Aluminum hydroxide Arsenic trioxide
Insulin chlorpromazine Erythromycin
action less
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work
action find_reverse_tuple_counts
relation main subject
type drug
type collectable
action count
action filter_multi_types
action find_reverse
entity enflurane
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:main_subject resource:enflurane . { { ?t rdf:type ontology:work } UNION { ?t rdf:type ontology:collectable } } } } . FILTER ( ?k < ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?k ) WHERE { { ?a property:main_subject ?y . ?y rdf:type ontology:drug . ?a rdf:type ontology:work } UNION { ?a property:main_subject ?y . ?y rdf:type ontology:drug . ?a rdf:type ontology:collectable } } GROUP BY ?y } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12018973 Q508720
P26
Q502895
USER
Which people are married to Dorothy Mackaill or Hana Meličková ?
OR((Q508720,P26,c(Q502895)), (Q12018973,P26,c(Q502895)))
action filter_type
action union
action find
entity Q508720
relation P26
action find
entity Q12018973
relation P26
type Q502895
{'OR': [['Q508720', 'P26', {'concept': 'Q502895'}], ['Q12018973', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q508720 property:P26 ?m } UNION { resource:Q12018973 property:P26 ?m } } . ?m rdf:type ontology:Q502895 }
Hana Meličková Dorothy Mackaill
action filter_type
action union
action find
entity Dorothy Mackaill
relation spouse
action find
entity Hana Meličková
relation spouse
type common name
{'OR': [['Dorothy Mackaill', 'spouse', {'concept': 'common name'}], ['Hana Meličková', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Dorothy_Mackaill property:spouse ?m } UNION { resource:Hana_Meličková property:spouse ?m } } . ?m rdf:type ontology:common_name }
[]
common name
Q77977 Q11774234
SYSTEM
Lothar Mendes, Daniel Rapant
Q77977 Q11774234
OR((Q508720,P26,c(Q502895)), (Q12018973,P26,c(Q502895)))
action filter_type
action union
action find
entity Q508720
relation P26
action find
entity Q12018973
relation P26
type Q502895
[ANSWERS] are married to Dorothy Mackaill or Hana Meličková
{'OR': [['Q508720', 'P26', {'concept': 'Q502895'}], ['Q12018973', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q508720 property:P26 ?m } UNION { resource:Q12018973 property:P26 ?m } } . ?m rdf:type ontology:Q502895 }
Lothar Mendes Daniel Rapant
Lothar Mendes and Daniel Rapant are married to Dorothy Mackaill or Hana Meličková
Lothar Mendes Daniel Rapant
action filter_type
action union
action find
entity Dorothy Mackaill
relation spouse
action find
entity Hana Meličková
relation spouse
type common name
{'OR': [['Dorothy Mackaill', 'spouse', {'concept': 'common name'}], ['Hana Meličková', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Dorothy_Mackaill property:spouse ?m } UNION { resource:Hana_Meličková property:spouse ?m } } . ?m rdf:type ontology:common_name }
[]